【问题标题】:how to fix that tensorflow.tools.api.generator.api.contrib' has no 'layers' member?如何修复 tensorflow.tools.api.generator.api.contrib' 没有 'layers' 成员?
【发布时间】:2018-05-13 01:11:58
【问题描述】:

我尝试通过 pylint 运行在 GitHub 上共享的代码与我的 VScode。

但我收到此错误消息:

E1101:Module 'tensorflow.tools.api.generator.api.contrib' has no 'layers' member

这里有什么问题?我该如何解决?

这里是代码:
https://github.com/cj0012/AI-Practice-Tensorflow-Notes/blob/master/opt/opt4_8_forward.py

【问题讨论】:

  • 你有什么问题?
  • pylint 有时是错误的。做一个测试,看看层是否存在并工作。

标签: python tensorflow machine-learning visual-studio-code pylint


【解决方案1】:

Pylint 错误,代码运行良好。该问题很可能与 TensorFlow 生成其 API 的方式有关。

【讨论】:

  • 与原始问题无关,但我可以在哪里阅读更多相关信息?
  • 你的意思是Tensorflow是如何生成API的?
  • @michele-ubik-de-simoni,是的
猜你喜欢
  • 2020-04-25
  • 2019-08-18
  • 2021-03-20
  • 2021-08-09
  • 1970-01-01
  • 1970-01-01
  • 2020-03-27
  • 1970-01-01
  • 2017-12-09
相关资源
最近更新 更多