Skip to content

Error in train.py: ValueError: Shapes (3, ?, 1, 1, 128) and () are incompatible #5

@anhduc2203

Description

@anhduc2203

Hi all, I have an issue when run train.py:
TensorFlow binary was not compiled to use: AVX2 FMA
Traceback (most recent call last):
File "train.py", line 90, in
l2_reg_lambda=FLAGS.l2_reg_lambda)
File "/home/anhduc/environments/my_env/cnn_text_classification/text_cnn.py", line 57, in init
self.h_pool = tf.concat(3, pooled_outputs)
File "/home/anhduc/environments/my_env/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 1122, in concat
tensor_shape.scalar())
File "/home/anhduc/environments/my_env/lib/python3.6/site-packages/tensorflow/python/framework/tensor_shape.py", line 848, in assert_is_compatible_with
raise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (3, ?, 1, 1, 128) and () are incompatible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions