摘要: import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import numpy as np import os import matplotlib.pyplot as plt os.environ["CUDA_VISIBLE_DEVIC 阅读全文
posted @ 2021-01-13 11:07 大米粒o 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 运行代码: import tensorflow as tf import os os.environ["CUDA_VISIBLE_DEVICES"]="0" with tf.compat.v1.Session() as sess: a = tf.constant(2) b = tf.constant 阅读全文
posted @ 2021-01-13 10:39 大米粒o 阅读(78) 评论(0) 推荐(0) 编辑