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
Traceback (most recent call last):
File "/content/drive/My Drive/Aivivn_1/main_hierarchical.py", line 247, in
args.fix_embed, args.add_embed, args.aug, args.aug_min_len, args.print_model, args.model
File "/content/drive/My Drive/Aivivn_1/main_hierarchical.py", line 117, in train_model
use_additive_emb = use_additive_emb
File "/content/drive/My Drive/Aivivn_1/scripts/rnn.py", line 198, in HRNN
word_lstm = Bidirectional(CuDNNLSTM(128))(embed)
File "/usr/local/lib/python3.6/dist-packages/keras/layers/wrappers.py", line 428, in call
return super(Bidirectional, self).call(inputs, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/base_layer.py", line 408, in call
self.assert_input_compatibility(inputs)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/base_layer.py", line 305, in assert_input_compatibility
str(K.ndim(x)))
ValueError: Input 0 is incompatible with layer bidirectional_1: expected ndim=3, found ndim=4
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/content/drive/My Drive/Aivivn_1/main_hierarchical.py", line 247, in
args.fix_embed, args.add_embed, args.aug, args.aug_min_len, args.print_model, args.model
File "/content/drive/My Drive/Aivivn_1/main_hierarchical.py", line 117, in train_model
use_additive_emb = use_additive_emb
File "/content/drive/My Drive/Aivivn_1/scripts/rnn.py", line 198, in HRNN
word_lstm = Bidirectional(CuDNNLSTM(128))(embed)
File "/usr/local/lib/python3.6/dist-packages/keras/layers/wrappers.py", line 428, in call
return super(Bidirectional, self).call(inputs, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/base_layer.py", line 408, in call
self.assert_input_compatibility(inputs)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/base_layer.py", line 305, in assert_input_compatibility
str(K.ndim(x)))
ValueError: Input 0 is incompatible with layer bidirectional_1: expected ndim=3, found ndim=4
The text was updated successfully, but these errors were encountered: