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_stack_hier.py bị dính lỗi TypeError #16

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

File main_stack_hier.py bị dính lỗi TypeError #16

hieuthehungry opened this issue Sep 24, 2019 · 0 comments

Comments

@hieuthehungry
Copy link

Traceback (most recent call last):
File "/content/drive/My Drive/Colab Notebooks/Aivivn_1/main_stack_hier.py", line 191, in
int(args.max), args.mix)
File "/content/drive/My Drive/Colab Notebooks/Aivivn_1/main_stack_hier.py", line 104, in stack
for model in models_list
File "/content/drive/My Drive/Colab Notebooks/Aivivn_1/main_stack_hier.py", line 104, in
for model in models_list
File "/content/drive/My Drive/Colab Notebooks/Aivivn_1/scripts/rnn.py", line 144, in SARNNKeras
)(x)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/base_layer.py", line 451, in call
output = self.call(inputs, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/keras_self_attention/seq_self_attention.py", line 169, in call
e = self._call_additive_emission(inputs)
File "/usr/local/lib/python3.6/dist-packages/keras_self_attention/seq_self_attention.py", line 223, in _call_additive_emission
q = K.tile(K.expand_dims(q, 2), K.stack([1, 1, input_len, 1]))
File "/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py", line 2430, in tile
if len(n) < len(shape): # Padding the axis
TypeError: object of type 'Tensor' has no len()

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