summaryrefslogtreecommitdiff
path: root/res/TensorFlowPythonExamples/examples/LSTM_unroll/__init__.py
blob: d21c2b54cc9b5838f6060dce06c5cee61e32645d (plain)
1
2
3
4
5
6
7
8
9
10
# NOTE tested with TF 2.8.0
from tensorflow import keras

model = keras.Sequential()
shape = (4, 4)

model.add(keras.layers.InputLayer(input_shape=shape, batch_size=1))
model.add(keras.layers.LSTM(2, input_shape=shape, unroll=True))

# NOTE refer https://github.com/Samsung/ONE/issues/9895#issuecomment-1288436802