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: Tensor._shape cannot be assigned, use Tensor.set_shape instead. #51

Open
Ronzhen opened this issue Oct 7, 2019 · 3 comments

Comments

@Ronzhen
Copy link

Ronzhen commented Oct 7, 2019

In import tflib.inception_score
91 o._shape = tf.TensorShape(new_shape)
I find ValueError: Tensor._shape cannot be assigned, use Tensor.set_shape instead.
Does anyone know how to deal with this problem, thank you

@Ronzhen
Copy link
Author

Ronzhen commented Oct 7, 2019

modify
O._shape = tf.TensorShape(new_shape)
for
O.set_shape(tf.TensorShape(new_shape))

and

modify
Logits = tf.matmul(tf.squeeze(pool3), w)
for
Logits = tf.matmul(tf.squeeze(pool3, [1,2]), w)

thanks for openai/improved-gan#31

@shivam-chandhok
Copy link

After doing this I am getting error:
AttributeError: 'NoneType' object has no attribute 'value'

@sumaiyaafridi
Copy link

Hi you solved the 'NoneType' Error

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