You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rnn_layers = []
for layer in dy_model.builder_layers:
fworbw = []
for fwbw in layer:
(W, U, b) = fwbw.param_collection().parameters_list()
b = b.as_array()
W = W.as_array()
U = U.as_array()
fworbw.append({
'U': U,
'W': W,
'b': b,
})
rnn_layers.append({
'fw': fworbw[0],
'bw': fworbw[1],
})
params = { 'birnn: rnn_layers }
I've tested and made sure that the inputs to the lstm are completely identical, however I get different output between the two frameworks :(
The text was updated successfully, but these errors were encountered:
Hi 👋
I am currently trying to use weights from a model in dynet:
dynet model:
Keras model:
to get params from Dynet I do the following
I've tested and made sure that the inputs to the lstm are completely identical, however I get different output between the two frameworks :(
The text was updated successfully, but these errors were encountered: