public class KerasFlattenRnnPreprocessor extends BaseInputPreProcessor
| Constructor and Description |
|---|
KerasFlattenRnnPreprocessor(long depth,
long tsLength) |
| Modifier and Type | Method and Description |
|---|---|
INDArray |
backprop(INDArray epsilons,
int miniBatchSize,
LayerWorkspaceMgr workspaceMgr)
Reverse the preProcess during backprop.
|
KerasFlattenRnnPreprocessor |
clone() |
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
|
feedForwardMaskArraypublic KerasFlattenRnnPreprocessor(long depth,
long tsLength)
public INDArray preProcess(INDArray input, int miniBatchSize, LayerWorkspaceMgr workspaceMgr)
InputPreProcessorinput - the input to pre preProcessminiBatchSize - Minibatch sizeworkspaceMgr - Workspace managerArrayType.ACTIVATIONS workspace via the workspace managerpublic INDArray backprop(INDArray epsilons, int miniBatchSize, LayerWorkspaceMgr workspaceMgr)
InputPreProcessorepsilons - which is a pair of the gradient and epsilonminiBatchSize - Minibatch sizeworkspaceMgr - Workspace managerArrayType.ACTIVATION_GRAD workspace via the
workspace managerpublic KerasFlattenRnnPreprocessor clone()
clone in interface InputPreProcessorclone in class BaseInputPreProcessorpublic InputType getOutputType(InputType inputType) throws InvalidInputTypeException
InputPreProcessorinputType - Type of input for the preprocessorInvalidInputTypeExceptionCopyright © 2022. All rights reserved.