indiejoseph / cnn-text-classification-tf-chinese

CNN for Chinese Text Classification in Tensorflow
235 stars 108 forks source link

There is no _linear function in TensorFlow 1.0.1 #11

Closed GabrielLin closed 7 years ago

GabrielLin commented 7 years ago

I managed to run the code in TF 1.0.1 using the conversion script. However, I still cannot found the _linear function in TF 1.0.1 in text_cnn.py line 14. Could you give some suggestions? Thanks.

acalanatha commented 7 years ago

add below, and remove scope parameter while calling: from tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl import _linear as linear