【问题标题】:module 'trax.supervised' has no attribute 'inputs'模块“trax.supervised”没有属性“输入”
【发布时间】:2021-03-07 06:50:38
【问题描述】:

我正在从事一个涉及 Google 的 TRAX 包的项目。在 Jupyter notebook 上运行 sn-p 代码时遇到以下错误消息。

module 'trax.supervised' has no attribute 'inputs'

有没有办法解决这个问题?我有 trax 版本 1.2.3。

谢谢!

【问题讨论】:

    标签: module trax


    【解决方案1】:

    根据 trax 文档 调用必须是 trax.data 而不是 trax.Supervised trax.data.inputs.add_loss_weights(generator, id_to_mask=None)

    https://trax-ml.readthedocs.io/en/latest/trax.data.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-07
      • 1970-01-01
      • 1970-01-01
      • 2020-06-04
      • 2021-12-24
      • 2019-07-09
      相关资源
      最近更新 更多