【发布时间】:2018-09-21 12:51:01
【问题描述】:
我尝试使用 intra_op_parallelism_threads 和 inter_op_parallelism_threads 的数字。我为 Java 使用 Tensorflow 和 Proto 版本 1.8.0。 我使用了以下代码:
ConfigProto config = ConfigProto.newBuilder()
.setInterOpParallelismThreads(44)
.setIntraOpParallelismThreads(44).build();
outputs = model.session().runner().setOptions(config.toByteArray()).
feed("image_tensor", input).fetch("detection_scores").fetch("detection_classes").fetch("detection_boxes").fetch("num_detections").run();
我做错了吗?还有其他方法吗?
谢谢
【问题讨论】:
标签: java tensorflow inference