public class CudnnLSTMHelper extends BaseCudnnHelper implements org.deeplearning4j.nn.layers.recurrent.LSTMHelper
BaseCudnnHelper.CudnnContext, BaseCudnnHelper.DataCache, BaseCudnnHelper.TensorArray| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
BIDIRECTIONAL |
protected static float |
DROPOUT |
protected static int |
NUM_LAYERS |
protected static int |
NUM_LINEAR_LAYERS |
protected static int |
RNN_MODE |
alpha, beta, dataType, dataTypeSize, sizeInBytes, TENSOR_FORMAT| Constructor and Description |
|---|
CudnnLSTMHelper() |
| Modifier and Type | Method and Description |
|---|---|
org.deeplearning4j.nn.layers.recurrent.FwdPassReturn |
activate(org.deeplearning4j.nn.api.Layer layer,
org.deeplearning4j.nn.conf.NeuralNetConfiguration conf,
IActivation gateActivationFn,
INDArray input,
INDArray recurrentWeights,
INDArray inputWeights,
INDArray biases,
boolean training,
INDArray prevOutputActivations,
INDArray prevMemCellState,
boolean forBackprop,
boolean forwards,
String inputWeightKey,
INDArray maskArray,
boolean hasPeepholeConnections,
org.deeplearning4j.nn.workspace.LayerWorkspaceMgr workspaceMgr) |
org.nd4j.linalg.primitives.Pair<org.deeplearning4j.nn.gradient.Gradient,INDArray> |
backpropGradient(org.deeplearning4j.nn.conf.NeuralNetConfiguration conf,
IActivation gateActivationFn,
INDArray input,
INDArray recurrentWeights,
INDArray inputWeights,
INDArray epsilon,
boolean truncatedBPTT,
int tbpttBackwardLength,
org.deeplearning4j.nn.layers.recurrent.FwdPassReturn fwdPass,
boolean forwards,
String inputWeightKey,
String recurrentWeightKey,
String biasWeightKey,
Map<String,INDArray> gradientViews,
INDArray maskArray,
boolean hasPeepholeConnections,
org.deeplearning4j.nn.workspace.LayerWorkspaceMgr workspaceMgr) |
boolean |
checkSupported(IActivation gateActivationFn,
IActivation activationFn,
boolean hasPeepholeConnections) |
Map<String,Long> |
helperMemoryUse() |
adaptForTensorDescr, checkCuda, checkCudnn, checkSupported, toCudnnDataTypeprotected static final int NUM_LAYERS
protected static final float DROPOUT
protected static final boolean BIDIRECTIONAL
protected static final int RNN_MODE
protected static final int NUM_LINEAR_LAYERS
public boolean checkSupported(IActivation gateActivationFn, IActivation activationFn, boolean hasPeepholeConnections)
checkSupported in interface org.deeplearning4j.nn.layers.recurrent.LSTMHelperpublic org.nd4j.linalg.primitives.Pair<org.deeplearning4j.nn.gradient.Gradient,INDArray> backpropGradient(org.deeplearning4j.nn.conf.NeuralNetConfiguration conf, IActivation gateActivationFn, INDArray input, INDArray recurrentWeights, INDArray inputWeights, INDArray epsilon, boolean truncatedBPTT, int tbpttBackwardLength, org.deeplearning4j.nn.layers.recurrent.FwdPassReturn fwdPass, boolean forwards, String inputWeightKey, String recurrentWeightKey, String biasWeightKey, Map<String,INDArray> gradientViews, INDArray maskArray, boolean hasPeepholeConnections, org.deeplearning4j.nn.workspace.LayerWorkspaceMgr workspaceMgr)
backpropGradient in interface org.deeplearning4j.nn.layers.recurrent.LSTMHelperpublic org.deeplearning4j.nn.layers.recurrent.FwdPassReturn activate(org.deeplearning4j.nn.api.Layer layer,
org.deeplearning4j.nn.conf.NeuralNetConfiguration conf,
IActivation gateActivationFn,
INDArray input,
INDArray recurrentWeights,
INDArray inputWeights,
INDArray biases,
boolean training,
INDArray prevOutputActivations,
INDArray prevMemCellState,
boolean forBackprop,
boolean forwards,
String inputWeightKey,
INDArray maskArray,
boolean hasPeepholeConnections,
org.deeplearning4j.nn.workspace.LayerWorkspaceMgr workspaceMgr)
activate in interface org.deeplearning4j.nn.layers.recurrent.LSTMHelperCopyright © 2018. All rights reserved.