textClassifier icon indicating copy to clipboard operation
textClassifier copied to clipboard

ValueError

Open jyostnab opened this issue 5 years ago • 1 comments

ValueError: Dimension 1 in both shapes must be equal, but are 100 and 10000. Shapes are [?,100] and [?,10000]. for 'bidirectional_20/while/Select' (op: 'Select') with input shapes: [?,10000], [?,100], [?,100].

jyostnab avatar Jan 11 '20 11:01 jyostnab

Which notebook are you running? If HATT, there is a known issue regarding mask handling by the custom Attention layer. Try disabling the mask for the custom layer.

https://github.com/richliao/textClassifier/blob/master/textClassifierHATT.py#L153 Change to return None.

sauteed-mackerel avatar Mar 28 '20 17:03 sauteed-mackerel