| Constructor and Description |
|---|
LSTMLayerOutputs(SDVariable[] outputs,
LSTMLayerConfig lstmLayerConfig) |
| Modifier and Type | Method and Description |
|---|---|
SDVariable |
getLastOutput() |
SDVariable |
getLastState() |
SDVariable |
getOutput()
Get h, the output of the cell for all time steps.
|
public LSTMLayerOutputs(SDVariable[] outputs, LSTMLayerConfig lstmLayerConfig)
public SDVariable getOutput()
Shape depends on data format defined in LSTMLayerConfig:
for unidirectional:
TNS: shape [timeLength, numExamples, inOutSize] - sometimes referred to as "time major"
NST: shape [numExamples, inOutSize, timeLength]
NTS: shape [numExamples, timeLength, inOutSize]
for bidirectional:
T2NS: 3 = [timeLength, 2, numExamples, inOutSize] (for ONNX)
public SDVariable getLastState()
public SDVariable getLastOutput()
Copyright © 2021. All rights reserved.