import tensorflow as tf
# Creates a graph.
a = tf.constant([6.0, 5.0, 3.0, 3.0, 2.0, 1.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name=
测试GPU是否参与模型训练等运算
最新推荐文章于 2024-01-24 01:09:23 发布
import tensorflow as tf
# Creates a graph.
a = tf.constant([6.0, 5.0, 3.0, 3.0, 2.0, 1.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name=