我只是在遵循 tensorflow 的教程并执行以下 cmd :
python ptb_word_lm.py --data_path=/home/priyankit/data/validsrc2-hi --
model=small
它显示以下错误:
Traceback (most recent call last):
File "ptb_word_lm.py", line 68, in
import util
File "/home/priyankit/models-master/tutorials/rnn/ptb/util.py", line
23, in
from tensorflow.core.protobuf import rewriter_config_pb2
ImportError: cannot import name rewriter_config_pb2