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

run python attention.py ,error is following. how to fix it ? thanks in advance! #21

Open
aspnetcs opened this issue Dec 10, 2018 · 12 comments

Comments

@aspnetcs
Copy link

WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
Traceback (most recent call last):
File "attention.py", line 37, in
out,state = tflib.ops.FreeRunIm2LatexAttention('AttLSTM',emb_seqs,ctx,EMB_DIM,ENC_DIM,DEC_DIM,D,H,W)
File "/home/rootx/me/im2latextensorflow/im2latex-tensorflow-master/tflib/ops.py", line 625, in FreeRunIm2LatexAttention
V = tf.transpose(ctx,[0,2,3,1]) # (B, H, W, D)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 1420, in transpose
ret = transpose_fn(a, perm, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 8927, in transpose
"Transpose", x=x, perm=perm, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 3274, in create_op
op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1792, in init
control_input_ops)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1631, in _create_c_op
raise ValueError(str(e))
ValueError: Dimension must be 3 but is 4 for 'transpose' (op: 'Transpose') with input shapes: [?,?,80], [4].

@aspnetcs aspnetcs changed the title run python attention.py ,error is following. run python attention.py ,error is following. how to fix it ? thanks in advance! Dec 10, 2018
@qianwangn
Copy link

try to change paramter for FreeRunIm2LatexAttention
i think this is a the paramter is mismatch to the function

@behzad-ost
Copy link

behzad-ost commented Jul 1, 2019

Any idea for this issue?
I tried changing the parameters in a couple of ways but I got some other errors

@aspnetcs
Copy link
Author

aspnetcs commented Jul 2, 2019 via email

@behzad-ost
Copy link

Where can I find this?
I cannot find this image on dockerhub, actually nothing with the name 'im2latex'.
I would appreciate it if you could give a repo link or some other url.

@aspnetcs
Copy link
Author

aspnetcs commented Jul 3, 2019 via email

@aspnetcs
Copy link
Author

aspnetcs commented Jul 3, 2019 via email

@aspnetcs
Copy link
Author

aspnetcs commented Jul 3, 2019 via email

@behzad-ost
Copy link

Thanks for the image. I will try it ASAP.
Sharif University of Technology, I don't know actually.
Contact these guys:
http://ia.sharif.ir/

@aspnetcs
Copy link
Author

aspnetcs commented Jul 3, 2019 via email

@aspnetcs
Copy link
Author

aspnetcs commented Jul 3, 2019 via email

@aspnetcs
Copy link
Author

aspnetcs commented Jul 28, 2019 via email

@aspnetcs
Copy link
Author

aspnetcs commented Jul 28, 2019 via email

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

3 participants