headlines icon indicating copy to clipboard operation
headlines copied to clipboard

Prediction is giving error of input shape in cell 28.

Open rabeeaghulam opened this issue 6 years ago • 2 comments

Dimensions must be equal, but are 40 and 50 for 'simplecontext_1/add' (op: 'Add') with input shapes: [64,40,40], [64,1,50].

rabeeaghulam avatar May 29 '18 21:05 rabeeaghulam

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))

taoyafan avatar Sep 24 '18 06:09 taoyafan

@taoyafan Bro Thanx you are awesome buddy

harshCali avatar Oct 03 '20 13:10 harshCali