public class CnnToRnnPreProcessor extends Object implements InputPreProcessor
| Constructor and Description |
|---|
CnnToRnnPreProcessor(long inputHeight,
long inputWidth,
long numChannels) |
CnnToRnnPreProcessor(long inputHeight,
long inputWidth,
long numChannels,
RNNFormat rnnDataFormat) |
| Modifier and Type | Method and Description |
|---|---|
INDArray |
backprop(INDArray output,
int miniBatchSize,
LayerWorkspaceMgr workspaceMgr)
Reverse the preProcess during backprop.
|
CnnToRnnPreProcessor |
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 CnnToRnnPreProcessor(long inputHeight,
long inputWidth,
long numChannels,
RNNFormat rnnDataFormat)
public CnnToRnnPreProcessor(long inputHeight,
long inputWidth,
long numChannels)
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 output, int miniBatchSize, LayerWorkspaceMgr workspaceMgr)
InputPreProcessorbackprop in interface InputPreProcessoroutput - which is a pair of the gradient and epsilonminiBatchSize - Minibatch sizeworkspaceMgr - Workspace managerArrayType.ACTIVATION_GRAD workspace via the
workspace managerpublic CnnToRnnPreProcessor 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 © 2020. All rights reserved.