[英]I can not successfully run tensorflow-gpu on anaconda python3.6 and spyder
tensorflow/streams_executor...
之前的字母I
表示您正在收到 INFO 级别的日志消息,而 Spyder 将此信息消息误认为是错误。 收到此消息是可以的,但是,您可以通过运行以下代码对 GPU 执行其他检查:
import tensorflow as tf
tf.debugging.set_log_device_placement(True)
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
# Create some tensors
a = tf.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
b = tf.constant([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])
c = tf.matmul(a, b)
print(c)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.