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

AttributeError: _parse_flags #181

Open ghost opened 5 years ago

ghost commented 5 years ago
python3 ./eval.py --eval_train --checkpoint_dir="./runs/1459637919/checkpoints/"
Traceback (most recent call last):
  File "./eval.py", line 31, in <module>
    FLAGS._parse_flags()
  File "/home/raffaele/.local/lib/python3.7/site-packages/tensorflow/python/platform/flags.py", line 85, in __getattr__
    return wrapped.__getattr__(name)
  File "/home/raffaele/.local/lib/python3.7/site-packages/absl/flags/_flagvalues.py", line 473, in __getattr__
    raise AttributeError(name)
AttributeError: _parse_flags
x931890193 commented 5 years ago

me too

WillAlex2017 commented 5 years ago

jist Comment on this line of code and the codes can run

kailongzhao commented 5 years ago

Tensorflow版本更新,只需用FLAGS.flag_values_dict()替换FLAGS._parse_flags()