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

ValueError: Shapes (2, 1) and () are incompatible #2

Closed
heikog opened this issue May 18, 2017 · 3 comments
Closed

ValueError: Shapes (2, 1) and () are incompatible #2

heikog opened this issue May 18, 2017 · 3 comments

Comments

@heikog
Copy link

heikog commented May 18, 2017

I wanted to play around with your work but im getting the above error when executing run.py
annysuggestions ? Its TF 1.1
tia

@zimmerm
Copy link
Collaborator

zimmerm commented May 19, 2017

The problems you are experiencing are due to changes that were made to the Tensorflow API.
Starting with TF 1.0 they renamed and changed the interface of some functions.

I was able to get it working on my machine with the following changes:
Change the order of arguments for all calls of tf.concat from "tf.concat(axis, [i1, i2])" to "tf.concat([i1, i2], axis)".
Add the following lines to "utils.py" after the import statements:

tf.pack = tf.stack
tf.select = tf.where
tf.batch_matmul = tf.matmul

Or maybe its easier for you to use the TF version mentioned here.

As soon as I find time I'll upgrade the code in repository to be compatible with the current release of Tensorflow.

@zimmerm zimmerm closed this as completed May 19, 2017
@heikog
Copy link
Author

heikog commented May 19, 2017

Thanks for your quick reply. Ill give it a shot

@gsrujana gsrujana mentioned this issue Sep 26, 2017
@Revin-yu
Copy link

I have the same problem, can you help me solve it?
ValueError: Shapes (3, 3, 3, 64) and (64, 1, 3, 3) are incompatible

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