MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / gru2

Function gru2

nlp_class3/simple_rnn_test.py:65–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64
65def gru2():
66 input_ = Input(shape=(T, D))
67 rnn = GRU(M, return_state=True, return_sequences=True)
68 x = rnn(input_)
69
70 model = Model(inputs=input_, outputs=x)
71 o, h = model.predict(X)
72 print("o:", o)
73 print("h:", h)
74
75
76

Callers 1

simple_rnn_test.pyFile · 0.85

Calls 3

predictMethod · 0.95
GRUClass · 0.50
ModelClass · 0.50

Tested by

no test coverage detected