2017-03-15 89 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

相关问题