摘要:
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 阅读全文
摘要:
运行代码: 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 阅读全文