Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File main_hierarchical.py dính lỗi value error #15

Open
hieuthehungry opened this issue Sep 24, 2019 · 0 comments
Open

File main_hierarchical.py dính lỗi value error #15

hieuthehungry opened this issue Sep 24, 2019 · 0 comments

Comments

@hieuthehungry
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant