TensorFlow版本兼容问题

因此为了解决这个问题,必须把

import tensorflow as tf

改成:

import tensorflow.compat.v1 as tf
 

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐