public class SDRNN extends SDOps
SameDiff.rnn()SDNN (accessible via SameDiff.nn() for general neural network ops.SDCNN (accessible via SameDiff.cnn() for convolutional neural network ops.f, updateVariableNameAndReferencepublic SDRNN(SameDiff sameDiff)
public GRUCellOutputs gru(@NonNull SDVariable x, @NonNull SDVariable hLast, @NonNull GRUWeights weights)
public GRUCellOutputs gru(String baseName, @NonNull SDVariable x, @NonNull SDVariable hLast, @NonNull GRUWeights weights)
baseName - The base name for the gru cellx - Input, with shape [batchSize, inSize]hLast - Output of the previous cell/time step, with shape [batchSize, numUnits]weights - The cell's weights.public LSTMCellOutputs lstmCell(@NonNull SDVariable x, @NonNull SDVariable cLast, @NonNull SDVariable yLast, LSTMWeights weights, LSTMConfiguration config)
public LSTMCellOutputs lstmCell(String baseName, @NonNull SDVariable x, @NonNull SDVariable cLast, @NonNull SDVariable yLast, @NonNull LSTMWeights weights, @NonNull LSTMConfiguration config)
baseName - The base name for the lstm cellx - Input, with shape [batchSize, inSize]cLast - Previous cell state, with shape [batchSize, numUnits]yLast - Previous cell output, with shape [batchSize, numUnits]weights - The cell's weights.config - The cell's config.public LSTMLayerOutputs lstmLayer(@NonNull SDVariable maxTSLength, @NonNull SDVariable x, @NonNull SDVariable cLast, @NonNull SDVariable yLast, @NonNull LSTMWeights weights, @NonNull LSTMConfiguration config)
public LSTMLayerOutputs lstmLayer(int maxTSLength, @NonNull SDVariable x, @NonNull SDVariable cLast, @NonNull SDVariable yLast, @NonNull LSTMWeights weights, @NonNull LSTMConfiguration config)
public LSTMLayerOutputs lstmLayer(String baseName, int maxTSLength, @NonNull SDVariable x, @NonNull SDVariable cLast, @NonNull SDVariable yLast, @NonNull LSTMWeights weights, @NonNull LSTMConfiguration config)
public LSTMLayerOutputs lstmLayer(String baseName, @NonNull SDVariable maxTSLength, @NonNull SDVariable x, @NonNull SDVariable cLast, @NonNull SDVariable yLast, @NonNull LSTMWeights weights, @NonNull LSTMConfiguration config)
baseName - The base name for the lstm layerx - Input, with shape dependent on the data format (in config).cLast - Previous/initial cell state, with shape [batchSize, numUnits]yLast - Previous/initial cell output, with shape [batchSize, numUnits]weights - The layer's weights.config - The layer's config.public SRUCellOutputs sruCell(@NonNull SDVariable x, @NonNull SDVariable cLast, @NonNull SRUWeights weights)
public SRUCellOutputs sruCell(String baseName, @NonNull SDVariable x, @NonNull SDVariable cLast, @NonNull SRUWeights weights)
baseName - The base name for the sru cellx - Input, with shape [batchSize, inSize]cLast - Previous cell state, with shape [batchSize, inSize]weights - The cell's weights.public SRULayerOutputs sru(@NonNull SDVariable x, @NonNull SDVariable initialC, @NonNull SRUWeights weights)
public SRULayerOutputs sru(String baseName, @NonNull SDVariable x, @NonNull SDVariable initialC, @NonNull SRUWeights weights)
public SRULayerOutputs sru(@NonNull SDVariable x, @NonNull SDVariable initialC, SDVariable mask, @NonNull SRUWeights weights)
public SRULayerOutputs sru(String baseName, @NonNull SDVariable x, @NonNull SDVariable initialC, SDVariable mask, @NonNull SRUWeights weights)
baseName - The base name for the sru layerx - Input, with shape [batchSize, inSize, timeSeriesLength]initialC - Initial cell state, with shape [batchSize, inSize]mask - An optional dropout mask, with shape [batchSize, inSize]weights - The layer's weights.Copyright © 2019. All rights reserved.