tensorflow2.0 GPU和CPU 时间对比
摘要:import time import tensorflow as tf cpu_slot = 0 gpu_slot = 0 # Using CPU at slot 0 with tf.device('/CPU:' + str(cpu_slot)): # Starting a timer start
阅读全文
posted @ 2020-06-22 10:38