autoencoder icon indicating copy to clipboard operation
autoencoder copied to clipboard

getting error in concatenating

Open un-lock-me opened this issue 5 years ago • 0 comments

Hi,

I am getting this error while trying to run train-autoencoder.py

INFO:root:Reading training data
INFO:root:Reading validation data
INFO:root:Creating model
Traceback (most recent call last):
  File "./src/train-autoencoder.py", line 113, in <module>
    bidirectional=args.bidirectional)
  File "/home/sgnbx/Downloads/projects/lstm-autoencoder-master/src/autoencoder.py", line 157, in __init__
    output = tf.concat(1, output)
  File "/home/sgnbx/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 1096, in concat
    dtype=dtypes.int32).get_shape().assert_is_compatible_with(
  File "/home/sgnbx/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 836, in convert_to_tensor
    as_ref=False)
  File "/home/sgnbx/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 926, in internal_convert_to_tensor
    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
  File "/home/sgnbx/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py", line 229, in _constant_tensor_conversion_function
    return constant(v, dtype=dtype, name=name)
  File "/home/sgnbx/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py", line 208, in constant
    value, dtype=dtype, shape=shape, verify_shape=verify_shape))
  File "/home/sgnbx/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py", line 383, in make_tensor_proto
    _AssertCompatible(values, dtype)
  File "/home/sgnbx/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py", line 303, in _AssertCompatible
    (dtype.name, repr(mismatch), type(mismatch).__name__))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

Any idea how to fix it?

un-lock-me avatar Mar 18 '19 19:03 un-lock-me