public class LSTMHelpers extends Object
Modifier and Type | Method and Description |
---|---|
static FwdPassReturn |
activateHelper(BaseRecurrentLayer layer,
NeuralNetConfiguration conf,
IActivation gateActivationFn,
INDArray input,
INDArray recurrentWeights,
INDArray originalInputWeights,
INDArray biases,
boolean training,
INDArray originalPrevOutputActivations,
INDArray originalPrevMemCellState,
boolean forBackprop,
boolean forwards,
String inputWeightKey,
INDArray maskArray,
boolean hasPeepholeConnections,
LSTMHelper helper,
CacheMode cacheMode,
LayerWorkspaceMgr workspaceMgr,
boolean isHelperAllowFallback)
Returns FwdPassReturn object with activations/INDArrays.
|
static Pair<Gradient,INDArray> |
backpropGradientHelper(BaseRecurrentLayer layer,
NeuralNetConfiguration conf,
IActivation gateActivationFn,
INDArray input,
INDArray recurrentWeights,
INDArray inputWeights,
INDArray epsilon,
boolean truncatedBPTT,
int tbpttBackwardLength,
FwdPassReturn fwdPass,
boolean forwards,
String inputWeightKey,
String recurrentWeightKey,
String biasWeightKey,
Map<String,INDArray> gradientViews,
INDArray maskArray,
boolean hasPeepholeConnections,
LSTMHelper helper,
LayerWorkspaceMgr workspaceMgr,
boolean isHelperAllowFallback) |
static LayerMemoryReport |
getMemoryReport(AbstractLSTM lstmLayer,
InputType inputType) |
static LayerMemoryReport |
getMemoryReport(boolean isGraves,
FeedForwardLayer lstmLayer,
InputType inputType) |
static LayerMemoryReport |
getMemoryReport(GravesBidirectionalLSTM lstmLayer,
InputType inputType) |
public static FwdPassReturn activateHelper(BaseRecurrentLayer layer, NeuralNetConfiguration conf, IActivation gateActivationFn, INDArray input, INDArray recurrentWeights, INDArray originalInputWeights, INDArray biases, boolean training, INDArray originalPrevOutputActivations, INDArray originalPrevMemCellState, boolean forBackprop, boolean forwards, String inputWeightKey, INDArray maskArray, boolean hasPeepholeConnections, LSTMHelper helper, CacheMode cacheMode, LayerWorkspaceMgr workspaceMgr, boolean isHelperAllowFallback)
public static Pair<Gradient,INDArray> backpropGradientHelper(BaseRecurrentLayer layer, NeuralNetConfiguration conf, IActivation gateActivationFn, INDArray input, INDArray recurrentWeights, INDArray inputWeights, INDArray epsilon, boolean truncatedBPTT, int tbpttBackwardLength, FwdPassReturn fwdPass, boolean forwards, String inputWeightKey, String recurrentWeightKey, String biasWeightKey, Map<String,INDArray> gradientViews, INDArray maskArray, boolean hasPeepholeConnections, LSTMHelper helper, LayerWorkspaceMgr workspaceMgr, boolean isHelperAllowFallback)
public static LayerMemoryReport getMemoryReport(AbstractLSTM lstmLayer, InputType inputType)
public static LayerMemoryReport getMemoryReport(GravesBidirectionalLSTM lstmLayer, InputType inputType)
public static LayerMemoryReport getMemoryReport(boolean isGraves, FeedForwardLayer lstmLayer, InputType inputType)
Copyright © 2022. All rights reserved.