2017-03-15 91 views
0

我正在使用Python 3.5,並且我在使用Anaconda的Windows 10中安裝了TensorFlow。
我得到了以下錯誤:使用Python 3.5(Windows 10)的Anaconda安裝TensorFlow錯誤

; TypeError: 'module' object is not callable

File "D:/Thèse1/LSTM/code/code_python/LSTM-Human-Activity-Recognition-master/lstm.py", line 114, in LSTM_Network 

outputs, _ = tf.contrib.rnn(lsmt_layers, feature_mat, dtype=tf.float32) TypeError: 'module' object is not callable 
+0

請重構您的問題,使其更具可讀性。你應該報告你想獲得什麼,你嘗試過什麼以及你得到的錯誤。 –

+0

['tf.contrib.rnn'](https://www.tensorflow.org/api_docs/python/tf/contrib/rnn)是一個模塊,錯誤信息可以幫助指出。 –

回答

1

,因爲你試圖調用模塊對象作爲一個功能你會得到一個錯誤。特別地,tf.contrib.rnn是包含所有RNN小區的TensorFlow模塊。你可以找到相關的文件here

如果您想使用LSTM單元,您需要使用tf.contrib.rnn.LSTMCell

相關問題