查看tf版本。
我的是因为在tf2下使用了tf1的API。
解决方式:
使用
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
替换
import tensorflow as tf

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2021-12-28
  • 2021-07-19
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2021-09-09
  • 2021-11-02
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案