()
| 52 | |
| 53 | |
| 54 | def gru1(): |
| 55 | input_ = Input(shape=(T, D)) |
| 56 | rnn = GRU(M, return_state=True) |
| 57 | x = rnn(input_) |
| 58 | |
| 59 | model = Model(inputs=input_, outputs=x) |
| 60 | o, h = model.predict(X) |
| 61 | print("o:", o) |
| 62 | print("h:", h) |
| 63 | |
| 64 | |
| 65 | def gru2(): |
no test coverage detected