public class Cnn3DToFeedForwardPreProcessor extends Object implements InputPreProcessor
for opposite case (i.e., DenseLayer -> CNN3D),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected int |
inputDepth |
protected int |
inputHeight |
protected int |
inputWidth |
protected boolean |
isNCDHW |
protected int |
numChannels |
| Constructor and Description |
|---|
Cnn3DToFeedForwardPreProcessor() |
Cnn3DToFeedForwardPreProcessor(int inputDepth,
int inputHeight,
int inputWidth) |
Cnn3DToFeedForwardPreProcessor(int inputDepth,
int inputHeight,
int inputWidth,
int numChannels,
boolean isNCDHW) |
| 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.
|
Cnn3DToFeedForwardPreProcessor |
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 inputDepth
protected int inputHeight
protected int inputWidth
protected int numChannels
protected boolean isNCDHW
public Cnn3DToFeedForwardPreProcessor(int inputDepth,
int inputHeight,
int inputWidth,
int numChannels,
boolean isNCDHW)
inputDepth - input channelsinputHeight - input heightinputWidth - input widthnumChannels - input channelsisNCDHW - boolean to indicate data format, i.e. channels first (NCDHW) vs. channels last (NDHWC)public Cnn3DToFeedForwardPreProcessor(int inputDepth,
int inputHeight,
int inputWidth)
public Cnn3DToFeedForwardPreProcessor()
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 Cnn3DToFeedForwardPreProcessor 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.