public class CnnToFeedForwardPreProcessor extends Object implements InputPreProcessor
for opposite case (i.e., DenseLayer -> CNNetc),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected int |
inputHeight |
protected int |
inputWidth |
protected int |
numChannels |
| Constructor and Description |
|---|
CnnToFeedForwardPreProcessor() |
CnnToFeedForwardPreProcessor(int inputHeight,
int inputWidth) |
CnnToFeedForwardPreProcessor(int inputHeight,
int inputWidth,
int numChannels) |
| Modifier and Type | Method and Description |
|---|---|
org.nd4j.linalg.api.ndarray.INDArray |
backprop(org.nd4j.linalg.api.ndarray.INDArray epsilons,
int miniBatchSize,
LayerWorkspaceMgr workspaceMgr)
Reverse the preProcess during backprop.
|
CnnToFeedForwardPreProcessor |
clone() |
org.nd4j.linalg.primitives.Pair<org.nd4j.linalg.api.ndarray.INDArray,MaskState> |
feedForwardMaskArray(org.nd4j.linalg.api.ndarray.INDArray maskArray,
MaskState currentMaskState,
int minibatchSize) |
InputType |
getOutputType(InputType inputType)
For a given type of input to this preprocessor, what is the type of the output?
|
org.nd4j.linalg.api.ndarray.INDArray |
preProcess(org.nd4j.linalg.api.ndarray.INDArray input,
int miniBatchSize,
LayerWorkspaceMgr workspaceMgr)
Pre preProcess input/activations for a multi layer network
|
protected int inputHeight
protected int inputWidth
protected int numChannels
public CnnToFeedForwardPreProcessor(int inputHeight,
int inputWidth,
int numChannels)
inputHeight - the columnsinputWidth - the rowsnumChannels - the channelspublic CnnToFeedForwardPreProcessor(int inputHeight,
int inputWidth)
public CnnToFeedForwardPreProcessor()
public org.nd4j.linalg.api.ndarray.INDArray preProcess(org.nd4j.linalg.api.ndarray.INDArray input,
int miniBatchSize,
LayerWorkspaceMgr workspaceMgr)
InputPreProcessorpreProcess in interface InputPreProcessorinput - the input to pre preProcessminiBatchSize - Minibatch sizeworkspaceMgr - Workspace managerArrayType.ACTIVATIONS workspace via the workspace managerpublic org.nd4j.linalg.api.ndarray.INDArray backprop(org.nd4j.linalg.api.ndarray.INDArray epsilons,
int miniBatchSize,
LayerWorkspaceMgr workspaceMgr)
InputPreProcessorbackprop in interface InputPreProcessorepsilons - which is a pair of the gradient and epsilonminiBatchSize - Minibatch sizeworkspaceMgr - Workspace managerArrayType.ACTIVATION_GRAD workspace via the
workspace managerpublic CnnToFeedForwardPreProcessor clone()
clone in interface InputPreProcessorclone in class Objectpublic InputType getOutputType(InputType inputType)
InputPreProcessorgetOutputType in interface InputPreProcessorinputType - Type of input for the preprocessorpublic org.nd4j.linalg.primitives.Pair<org.nd4j.linalg.api.ndarray.INDArray,MaskState> feedForwardMaskArray(org.nd4j.linalg.api.ndarray.INDArray maskArray, MaskState currentMaskState, int minibatchSize)
feedForwardMaskArray in interface InputPreProcessorCopyright © 2018. All rights reserved.