tfsourcelstm - juedaiyuer/researchNote GitHub Wiki

tensorflow源代码-lstm v1.0

测试环境

使用了Anaconda,创建了pytf10环境

>>> import tensorflow as tf
>>> tf.__version__
'1.0.1'

代码位置

tensorflow/compiler/tests/lstm_test.py

运行lstm_test

遇到的error

Traceback (most recent call last):
  File "lstm_test.py", line 27, in <module>
    from tensorflow.compiler.tests import lstm
ImportError: No module named compiler.tests

采取了编译源代码的方式解决

⚠️ **GitHub.com Fallback** ⚠️