tf.placeholder()改为tf.compat.v1.placeholder()
并添加语句
tf.compat.v1.disable_eager_execution()
本文介绍如何在 TensorFlow 2.x 中使用 tf.compat.v1.placeholder 替代原有的 tf.placeholder,并通过调用 tf.compat.v1.disable_eager_execution() 来禁用默认的即时执行模式。
tf.placeholder()改为tf.compat.v1.placeholder()
并添加语句
tf.compat.v1.disable_eager_execution()
您可能感兴趣的与本文相关的镜像
TensorFlow-v2.15
TensorFlow 是由Google Brain 团队开发的开源机器学习框架,广泛应用于深度学习研究和生产环境。 它提供了一个灵活的平台,用于构建和训练各种机器学习模型
152

被折叠的 条评论
为什么被折叠?