环境:python2.7 tensorflow=2.1 操作系统:macOS Mojave 10.14
原因:这是tf1版本的导入方法
解决:tf2版本改为
from tensorflow.python.ops import rnn_cell
from tensorflow.python.ops import rnn
环境:python2.7 tensorflow=2.1 操作系统:macOS Mojave 10.14
原因:这是tf1版本的导入方法
解决:tf2版本改为
from tensorflow.python.ops import rnn_cell
from tensorflow.python.ops import rnn