如何用Tensorflow2.X运行1.X的代码。

简介: 如何用Tensorflow2.X运行1.X的代码。

import tensorflow.compat.v1 as tf

tf.compat.v1.disable_eager_execution()

import tensorflow.compat.v1 as tf

tf.disable_v2_behavior()

替换import tensorflow as tf


目录
相关文章
|
18天前
|
机器学习/深度学习 自然语言处理 TensorFlow
TensorFlow 实战(五)(1)
TensorFlow 实战(五)
24 0
|
18天前
|
机器学习/深度学习 TensorFlow 算法框架/工具
TensorFlow 实战(一)(2)
TensorFlow 实战(一)
18 0
|
18天前
|
机器学习/深度学习 自然语言处理 TensorFlow
TensorFlow 实战(五)(2)
TensorFlow 实战(五)
16 0
|
18天前
|
机器学习/深度学习 自然语言处理 数据可视化
TensorFlow 实战(二)(2)
TensorFlow 实战(二)
21 0
|
18天前
|
机器学习/深度学习 自然语言处理 TensorFlow
TensorFlow 实战(四)(2)
TensorFlow 实战(四)
13 0
|
18天前
|
机器学习/深度学习 TensorFlow API
TensorFlow 实战(一)(3)
TensorFlow 实战(一)
22 0
|
18天前
|
机器学习/深度学习 API TensorFlow
TensorFlow 实战(一)(5)
TensorFlow 实战(一)
20 0
|
18天前
|
存储 TensorFlow API
TensorFlow 实战(七)(3)
TensorFlow 实战(七)
20 0
|
1月前
|
TensorFlow 算法框架/工具
【tensorflow】- 知识点补充
【tensorflow】- 知识点补充
|
1月前
|
机器学习/深度学习 大数据 TensorFlow
使用TensorFlow实现Python简版神经网络模型
使用TensorFlow实现Python简版神经网络模型

热门文章

最新文章