public class Cnn3DToFeedForwardPreProcessor extends Object implements InputPreProcessor
| Modifier and Type | Field and Description |
|---|---|
protected long |
inputDepth |
protected long |
inputHeight |
protected long |
inputWidth |
protected boolean |
isNCDHW |
protected long |
numChannels |
| Constructor and Description |
|---|
Cnn3DToFeedForwardPreProcessor() |
Cnn3DToFeedForwardPreProcessor(int inputDepth,
int inputHeight,
int inputWidth) |
Cnn3DToFeedForwardPreProcessor(int inputDepth,
int inputHeight,
int inputWidth,
int numChannels,
Convolution3D.DataFormat dataFormat) |
Cnn3DToFeedForwardPreProcessor(long inputDepth,
long inputHeight,
long inputWidth,
long numChannels,
boolean isNCDHW) |
| Modifier and Type | Method and Description |
|---|---|
INDArray |
backprop(INDArray epsilons,
int miniBatchSize,
LayerWorkspaceMgr workspaceMgr)
Reverse the preProcess during backprop.
|
Cnn3DToFeedForwardPreProcessor |
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
|
protected long inputDepth
protected long inputHeight
protected long inputWidth
protected long numChannels
protected boolean isNCDHW
public Cnn3DToFeedForwardPreProcessor(long inputDepth,
long inputHeight,
long inputWidth,
long 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(int inputDepth,
int inputHeight,
int inputWidth,
int numChannels,
Convolution3D.DataFormat dataFormat)
public Cnn3DToFeedForwardPreProcessor()
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 Cnn3DToFeedForwardPreProcessor 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.