04(序)—— Tensorflow程序运行案例

在阅读本Blog之前,请先了解Tensorflow的基本框架:https://blog.csdn.net/m0_51339444/article/details/130147776

一、案例1(constant定义 & 会话)

#coding=utf-8
import tensorflow as tf
import os
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
os.putenv('MLU_VISIBLE_DEVICES'

猜你喜欢

转载自blog.csdn.net/m0_51339444/article/details/130175377