dennybritz / cnn-text-classification-tf

Convolutional Neural Network for Text Classification in Tensorflow
Apache License 2.0
5.65k stars 2.77k forks source link

TypeError While trying to evaluate the model. #149

Closed bibhu107 closed 6 years ago

bibhu107 commented 6 years ago

x_test is an numpy_array feed_dict={x_tensor: x_test, keep_prob: 1.0} opt = sess.run(op_to_restore ,feed_dict)

x_tensor : Tensor("inputTensor:0", shape=(?, 88), dtype=int32) keep_prob: Tensor("dropout_keep_prob:0", dtype=float32) op_to_restore : Tensor("output/softmax:0", shape=(?, 6), dtype=float32)

Cannot interpret feed_dict key as Tensor: Tensor Tensor("inputTensor:0", shape=(?, 88), dtype=int32) is not an element of this graph.