2016-12-04 45 views
0

私はtensorflowを初めて使用しました。LSTMというチュートリアルの例をテストしています。 私は指示に従ってコードとデータセットをダウンロードし、プログラムを実行するには、次のコマンドを実行します。Tensorflow AttributeError: 'module'オブジェクトには 'deprecated'属性がありません。

wget http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz 
tar xvf simple-examples.tgz 
python ptb_word_lm.py --data_path=simple-examples/data/ 

をしかし、プログラムが実行できないと、次のエラーメッセージ報告:やった

File "ptb_word_lm.py", line 332, in main tf.contrib.deprecated.scalar_summary("Training Loss", m.cost) 
AttributeError: 'module' object has no attribute 'deprecated' 

を私は間違っている?私のシステムのバージョン情報は以下の通りです。

Pip version: pip 1.5.4 
Python version: 2.7.6 
Operating System: Ubuntu 14.04.5 LTS 
Tensorflow version: tensorflow-0.12.0rc0-cp27-none-linux_x86_64 

ありがとうございました!

答えて

0

あなたは

詳細はhereに記載されているptb_word_lm.pyに

tf.scalar_summary() 

を持つすべての

tf.contrib.deprecated.scalar_summary() 

を交換する必要があります。

関連する問題