public class LSTMHelpers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static FwdPassReturn |
activateHelper(Layer layer,
NeuralNetConfiguration conf,
org.nd4j.linalg.activations.IActivation gateActivationFn,
org.nd4j.linalg.api.ndarray.INDArray input,
org.nd4j.linalg.api.ndarray.INDArray recurrentWeights,
org.nd4j.linalg.api.ndarray.INDArray originalInputWeights,
org.nd4j.linalg.api.ndarray.INDArray biases,
boolean training,
org.nd4j.linalg.api.ndarray.INDArray originalPrevOutputActivations,
org.nd4j.linalg.api.ndarray.INDArray originalPrevMemCellState,
boolean forBackprop,
boolean forwards,
java.lang.String inputWeightKey,
org.nd4j.linalg.api.ndarray.INDArray maskArray)
Returns FwdPassReturn object with activations/INDArrays.
|
static Pair<Gradient,org.nd4j.linalg.api.ndarray.INDArray> |
backpropGradientHelper(NeuralNetConfiguration conf,
org.nd4j.linalg.activations.IActivation gateActivationFn,
org.nd4j.linalg.api.ndarray.INDArray input,
org.nd4j.linalg.api.ndarray.INDArray recurrentWeights,
org.nd4j.linalg.api.ndarray.INDArray inputWeights,
org.nd4j.linalg.api.ndarray.INDArray epsilon,
boolean truncatedBPTT,
int tbpttBackwardLength,
FwdPassReturn fwdPass,
boolean forwards,
java.lang.String inputWeightKey,
java.lang.String recurrentWeightKey,
java.lang.String biasWeightKey,
java.util.Map<java.lang.String,org.nd4j.linalg.api.ndarray.INDArray> gradientViews,
org.nd4j.linalg.api.ndarray.INDArray maskArray) |
public static FwdPassReturn activateHelper(Layer layer, NeuralNetConfiguration conf, org.nd4j.linalg.activations.IActivation gateActivationFn, org.nd4j.linalg.api.ndarray.INDArray input, org.nd4j.linalg.api.ndarray.INDArray recurrentWeights, org.nd4j.linalg.api.ndarray.INDArray originalInputWeights, org.nd4j.linalg.api.ndarray.INDArray biases, boolean training, org.nd4j.linalg.api.ndarray.INDArray originalPrevOutputActivations, org.nd4j.linalg.api.ndarray.INDArray originalPrevMemCellState, boolean forBackprop, boolean forwards, java.lang.String inputWeightKey, org.nd4j.linalg.api.ndarray.INDArray maskArray)
public static Pair<Gradient,org.nd4j.linalg.api.ndarray.INDArray> backpropGradientHelper(NeuralNetConfiguration conf, org.nd4j.linalg.activations.IActivation gateActivationFn, org.nd4j.linalg.api.ndarray.INDArray input, org.nd4j.linalg.api.ndarray.INDArray recurrentWeights, org.nd4j.linalg.api.ndarray.INDArray inputWeights, org.nd4j.linalg.api.ndarray.INDArray epsilon, boolean truncatedBPTT, int tbpttBackwardLength, FwdPassReturn fwdPass, boolean forwards, java.lang.String inputWeightKey, java.lang.String recurrentWeightKey, java.lang.String biasWeightKey, java.util.Map<java.lang.String,org.nd4j.linalg.api.ndarray.INDArray> gradientViews, org.nd4j.linalg.api.ndarray.INDArray maskArray)