public class InputLayer extends AbstractLayer
AbstractLayer
,
Serialized FormConstructor and Description |
---|
InputLayer(int width)
Creates input layer with specified width, and with height and depth equals to one.
|
InputLayer(int width,
int height)
Creates input layer with specified width and height, and depth=1 (single depth/channel).
|
InputLayer(int width,
int height,
int depth)
Creates input layer with specified width, height, and depth (number of
channels).
|
Modifier and Type | Method and Description |
---|---|
void |
applyWeightChanges()
This method does nothing in input layer.
|
void |
backward()
This method does nothing in the input layer, and should never be called.
|
void |
forward()
This method does nothing in the input layer, and should never be called.
|
void |
init()
Initialize this layer in network.
|
void |
setInput(Tensor in)
Sets network input
|
String |
toString() |
getActivation, getActivationType, getBatchSize, getBiases, getDeltaBiases, getDeltas, getDeltaWeights, getDepth, getGradients, getHeight, getL1Regularization, getL1WeightSum, getL2Regularization, getL2WeightSum, getLearningRate, getMomentum, getNextLayer, getOptimizer, getOptimizerType, getOutputs, getPrevDeltaBiases, getPrevDeltaWeights, getPrevlayer, getWeights, getWidth, initTransientFields, isBatchMode, isTrainable, setBatchMode, setBatchSize, setBiases, setDeltas, setL1Regularization, setL2Regularization, setLearningRate, setMomentum, setNextlayer, setOptimizerType, setOutputs, setPrevDeltaWeights, setPrevLayer, setTrainable, setWeights, setWeights
public InputLayer(int width, int height, int depth)
width
- layer widthheight
- layer heightdepth
- layer depth (number of input channels)public InputLayer(int width, int height)
width
- layer widthheight
- layer heightpublic InputLayer(int width)
width
- layer widthpublic final void init()
init
in class AbstractLayer
public void setInput(Tensor in)
in
- input matrix/arraypublic void forward()
forward
in interface Layer
forward
in class AbstractLayer
public void backward()
backward
in interface Layer
backward
in class AbstractLayer
public void applyWeightChanges()
applyWeightChanges
in class AbstractLayer
Copyright © 2022. All rights reserved.