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
This error occurs in lines 10 of the function simple_context() in cell 27.
Fix the code in lines 8 from activation_energies = K.batch_dot(head_activations, desc_activations, axes=([2],[2]))
to activation_energies = K.batch_dot(head_activations, desc_activations, axes=(2,2))
After you fix this error, you should also fix the code in lines 18 from desc_avg_word = K.batch_dot(activation_weights, desc_words, axes=([2],[1]))
to desc_avg_word = K.batch_dot(activation_weights, desc_words, axes=(2,1))
Dimensions must be equal, but are 40 and 50 for 'simplecontext_1/add' (op: 'Add') with input shapes: [64,40,40], [64,1,50].
The text was updated successfully, but these errors were encountered: