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='b
测试GPU是否参与模型训练等运算
最新推荐文章于 2024-07-16 15:04:58 发布
通过运行测试,结果显示运算过程中确实启用了GPU,表明在进行深度学习和神经网络训练时,GPU参与了计算任务,提高了计算效率。

最低0.47元/天 解锁文章
1763

被折叠的 条评论
为什么被折叠?



