dongjun-Lee / text-classification-models-tf

Tensorflow implementations of Text Classification Models.
505 stars 164 forks source link

What version of Tensorflow the code runs with? #7

Open Crista23 opened 5 years ago

Crista23 commented 5 years ago

It crashes in Tensorflow 1.4 with the error below:

Traceback (most recent call last): File "train.py", line 47, in model = VDCNN(alphabet_size, CHAR_MAX_LEN, NUM_CLASS) File "text-classification-models-tf/cnn_models/vd_cnn.py", line 70, in init tf.nn.softmax_cross_entropy_with_logits_v2(logits=self.logits, labels=y_one_hot)) AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'softmax_cross_entropy_with_logits_v2'

grapeff commented 5 years ago

I have the same problem.