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

Attribute Error: 'int' object has no attribute 'value' for attn_length #176

Open
mitali3112 opened this issue Aug 28, 2020 · 0 comments
Open

Comments

@mitali3112
Copy link

I am getting this error while using the train phase for aocr. Any suggestions would be helpful

Traceback (most recent call last):
File "/usr/local/bin/aocr", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/aocr/main.py", line 251, in main
channels=parameters.channels,
File "/usr/local/lib/python3.6/dist-packages/aocr/model/model.py", line 157, in init
use_gru=use_gru)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq_model.py", line 145, in init
softmax_loss_function=softmax_loss_function)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq.py", line 482, in model_with_buckets
int(bucket[0]))
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq_model.py", line 144, in
self.target_weights, buckets, lambda x, y, z: seq2seq_f(x, y, z, False),
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq_model.py", line 126, in seq2seq_f
attn_num_hidden=attn_num_hidden)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq.py", line 349, in embedding_attention_decoder
initial_state_attention=initial_state_attention, attn_num_hidden=attn_num_hidden)
File "/usr/local/lib/python3.6/dist-packages/aocr/model/seq2seq.py", line 178, in attention_decoder
attn_length = attention_states.get_shape()[1].value
AttributeError: 'int' object has no attribute 'value'

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