kimber-chen / Twitter-stance-classification-by-TensorFlow

9 stars 3 forks source link

Tensor Flow Issues #2

Open ukamath opened 6 years ago

ukamath commented 6 years ago

uday:CNN_word embedding uday.kamath$ python ./train.py

Parameters: ALLOW_SOFT_PLACEMENT=True BATCH_SIZE=16 DROPOUT_KEEP_PROB=0.5 EMBEDDING_DIM=128 EVALUATE_EVERY=100 FILTER_SIZES=3,4,5 L2_REG_LAMBDA=0.0 LOG_DEVICE_PLACEMENT=False NUM_EPOCHS=500 NUM_FILTERS=128 STOP_STEP=1500 TASK=taskA TESTING_FILE=traindev/rumoureval-subtaskA-dev.json TRAINING_FILE=traindev/rumoureval-subtaskA-train.json

Loading data... start training... 2017-12-21 12:22:15.023552: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. 2017-12-21 12:22:15.023572: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 2017-12-21 12:22:15.023576: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 2017-12-21 12:22:15.023579: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. Traceback (most recent call last): File "./train.py", line 93, in l2_reg_lambda=FLAGS.l2_reg_lambda) File "/Users/uday.kamath/Twitter-stance-classification-by-TensorFlow-master/CNN_word embedding/text_cnn.py", line 57, in init self.h_pool = tf.concat(3, pooled_outputs) File "/Users/uday.kamath/anaconda/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 1061, in concat dtype=dtypes.int32).get_shape( File "/Users/uday.kamath/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 611, in convert_to_tensor as_ref=False) File "/Users/uday.kamath/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 676, in internal_convert_to_tensor ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref) File "/Users/uday.kamath/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py", line 121, in _constant_tensor_conversion_function return constant(v, dtype=dtype, name=name) File "/Users/uday.kamath/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py", line 102, in constant tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape)) File "/Users/uday.kamath/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py", line 376, in make_tensor_proto _AssertCompatible(values, dtype) File "/Users/uday.kamath/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py", line 302, in _AssertCompatible (dtype.name, repr(mismatch), type(mismatch).name))

TypeError: Expected int32, got list containing Tensors of type '_Message' instead