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

Tensorflow error #51

Open
udaynayak2018 opened this issue Dec 15, 2018 · 1 comment
Open

Tensorflow error #51

udaynayak2018 opened this issue Dec 15, 2018 · 1 comment

Comments

@udaynayak2018
Copy link

your code is giving me errors ... especially the tensorflow code.....

File "/home/uday/Documents/GAN1/model.py", line 138, in generator
z_concat = tf.concat(1,[t_z, reduced_text_embedding])
File "/home/uday/anaconda3/lib/python3.5/site-packages/tensorflow/python/ops/array_ops.py", line 1111, in concat
dtype=dtypes.int32).get_shape().assert_is_compatible_with(
File "/home/uday/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 998, in convert_to_tensor
as_ref=False)
File "/home/uday/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1094, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/uday/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/constant_op.py", line 217, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/home/uday/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/constant_op.py", line 196, in constant
value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "/home/uday/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/tensor_util.py", line 436, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/home/uday/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/tensor_util.py", line 347, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

@prophet009
Copy link

for the line z_concat = tf.concat(1, [t_z, reduced_text_embedding])
use this instead z_concat = tf.concat([t_z, reduced_text_embedding],1)

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

2 participants