()
| 27 | |
| 28 | |
| 29 | def lstm1(): |
| 30 | input_ = Input(shape=(T, D)) |
| 31 | rnn = LSTM(M, return_state=True) |
| 32 | x = rnn(input_) |
| 33 | |
| 34 | model = Model(inputs=input_, outputs=x) |
| 35 | o, h, c = model.predict(X) |
| 36 | print("o:", o) |
| 37 | print("h:", h) |
| 38 | print("c:", c) |
| 39 | |
| 40 | |
| 41 | def lstm2(): |
no test coverage detected