【发布时间】:2020-02-11 10:51:55
【问题描述】:
我正在尝试从 tensorflow 对象检测 API 运行模型评分(推理图)以在多个 GPU 上运行它,尝试在主 GPU 中指定 GPU 编号,但它仅在单个 GPU 上运行。placed GPU utilization snapshot here
使用 tensorflow-gpu==1.13.1,您能否指出我在这里缺少的内容。
for i in range(2):
with tf.device('/gpu:{}' . format(i)):
tf_init()
init = tf.global_variables_initializer
with detection_graph.as_default():
with tf.Session(config=tf.ConfigProto(log_device_placement=True)) as session:
call to #run_inference_multiple_images function
【问题讨论】:
标签: tensorflow scoring multi-gpu