()
| 39 | |
| 40 | |
| 41 | def lstm2(): |
| 42 | input_ = Input(shape=(T, D)) |
| 43 | rnn = LSTM(M, return_state=True, return_sequences=True) |
| 44 | # rnn = GRU(M, return_state=True) |
| 45 | x = rnn(input_) |
| 46 | |
| 47 | model = Model(inputs=input_, outputs=x) |
| 48 | o, h, c = model.predict(X) |
| 49 | print("o:", o) |
| 50 | print("h:", h) |
| 51 | print("c:", c) |
| 52 | |
| 53 | |
| 54 | def gru1(): |
no test coverage detected