【问题标题】:deprication of tf.contrib.rnn.LayerNormBasicLSTMCelltf.contrib.rnn.LayerNormBasicLSTMCell 的贬低
【发布时间】:2021-11-10 23:41:32
【问题描述】:

documentation 我可以看到 tf.contrib 已被 tensorflow 2 弃用。 但是,找不到Migration Guide 页面。

我实际上是在尝试在 tensorflow 2.1 中编写一个 rnn。 有没有类似的keras库?还是我必须降级到 tensorflow 1(即使 tensorflow 真的告诉我们开始采用 v2.x)

【问题讨论】:

    标签: python tensorflow recurrent-neural-network


    【解决方案1】:

    现在你需要使用tensoflow_addons并按照github的安装。

    之后你需要使用LayerNormLSTMCell(等于LayerNormBasicLSTMCell)。

    更多信息在这里:

    https://www.tensorflow.org/addons/api_docs/python/tfa/rnn

    https://github.com/tensorflow/addons

    https://www.tensorflow.org/addons/api_docs/python/tfa/rnn/LayerNormLSTMCell

    【讨论】:

      猜你喜欢
      • 2014-02-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-20
      • 2015-02-10
      • 2018-09-16
      • 1970-01-01
      • 2013-01-19
      相关资源
      最近更新 更多