AttributeError: module ‘tensorflow._api.v1.nn.rnn_cell‘ has no attribute ‘InputProjectionWrapper‘

TURBOTX發表於2020-12-20

參考·:https://docs.w3cub.com/tensorflow~python/tf/contrib/rnn/outputprojectionwrapper

#InputProjectionWrapper = tf.nn.rnn_cell.InputProjectionWrapper
InputProjectionWrapper = tf.contrib.rnn.InputProjectionWrapper
#OutputProjectionWrapper = tf.nn.rnn_cell.OutputProjectionWrapper
OutputProjectionWrapper = tf.contrib.rnn.OutputProjectionWrapper
#備註的是原來錯誤的,後來的是是改正的
#版本:tensorflow1.13.1

 

相關文章