AttributeError: module ‘tensorflow_core._api.v2.nn’ has no attribute ‘rnn_cell’ tensorflow Version compatibility issues-solution

tf.compat.v1.nn.rnn_cell.RNNCell

https://tensorflow.google.cn/api_docs/python/tf/compat/v1/nn/rnn_cell/RNNCell?hl=en

importtensorflow.compat.v1astf

tf.disable_v2_behavior()

Similar Posts: