@Deprecated public class ReshapePreProcessor extends BaseInputPreProcessor
Constructor and Description |
---|
ReshapePreProcessor(int... toShape)
Deprecated.
|
ReshapePreProcessor(int[] fromShape,
int[] toShape)
Deprecated.
|
ReshapePreProcessor(int[] fromShape,
int[] toShape,
boolean dynamic)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.api.ndarray.INDArray |
backprop(org.nd4j.linalg.api.ndarray.INDArray output,
int miniBatchSize)
Deprecated.
Reverse the preProcess during backprop.
|
ReshapePreProcessor |
clone()
Deprecated.
|
InputType |
getOutputType(InputType inputType)
Deprecated.
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)
Deprecated.
Pre preProcess input/activations for a multi layer network
|
public ReshapePreProcessor(int[] fromShape, int[] toShape, boolean dynamic)
fromShape
- May be null. If null: no change/op during backward pass.toShape
- The shape that activations are reshaped todynamic
- Infer the number of examples or not
Otherwise fromShape is the shape that epsilons (weights*deltas or equiv.)
are reshaped to by backprop(...)public ReshapePreProcessor(int... toShape)
public ReshapePreProcessor(int[] fromShape, int[] toShape)
public org.nd4j.linalg.api.ndarray.INDArray preProcess(org.nd4j.linalg.api.ndarray.INDArray input, int miniBatchSize)
InputPreProcessor
input
- the input to pre preProcesspublic org.nd4j.linalg.api.ndarray.INDArray backprop(org.nd4j.linalg.api.ndarray.INDArray output, int miniBatchSize)
InputPreProcessor
output
- which is a pair of the gradient and epsilonpublic ReshapePreProcessor clone()
clone
in interface InputPreProcessor
clone
in class BaseInputPreProcessor
public InputType getOutputType(InputType inputType)
InputPreProcessor
inputType
- Type of input for the preprocessorCopyright © 2016. All Rights Reserved.