public class FeedForwardToCnn3DPreProcessor extends Object implements InputPreProcessor
| Constructor and Description |
|---|
FeedForwardToCnn3DPreProcessor(int inputDepth,
int inputWidth,
int inputHeight) |
FeedForwardToCnn3DPreProcessor(int inputDepth,
int inputHeight,
int inputWidth,
int numChannels,
boolean isNCDHW) |
| Modifier and Type | Method and Description |
|---|---|
INDArray |
backprop(INDArray epsilons,
int miniBatchSize,
LayerWorkspaceMgr workspaceMgr)
Reverse the preProcess during backprop.
|
FeedForwardToCnn3DPreProcessor |
clone() |
Pair<INDArray,MaskState> |
feedForwardMaskArray(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?
|
INDArray |
preProcess(INDArray input,
int miniBatchSize,
LayerWorkspaceMgr workspaceMgr)
Pre preProcess input/activations for a multi layer network
|
public FeedForwardToCnn3DPreProcessor(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 FeedForwardToCnn3DPreProcessor(int inputDepth,
int inputWidth,
int inputHeight)
public INDArray preProcess(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 INDArray backprop(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 FeedForwardToCnn3DPreProcessor clone()
clone in interface InputPreProcessorclone in class Objectpublic InputType getOutputType(InputType inputType)
InputPreProcessorgetOutputType in interface InputPreProcessorinputType - Type of input for the preprocessorpublic Pair<INDArray,MaskState> feedForwardMaskArray(INDArray maskArray, MaskState currentMaskState, int minibatchSize)
feedForwardMaskArray in interface InputPreProcessorCopyright © 2021. All rights reserved.