Open zhonhel opened 6 years ago
Hi @zhonhel, you may like to change the code as the following
index 88cb83e..22e7c12 100644 --- a/c2board/graph.py +++ b/c2board/graph.py @@ -168,7 +168,7 @@ def _tf_device(device_option):
if device_option.device_type == caffe2_pb2.CPU:
return "/cpu:*"
if device_option.device_type == caffe2_pb2.CUDA:
- return "/gpu:{}".format(device_option.cuda_gpu_id)
+ return "/gpu:{}".format(device_option.device_id)
raise Exception("Un-handled device", device_option)
Hi, Thank you very much for providing this tool. But I encountered error when using
writer.write_graph
this function. And the argument I provided to it is aDetectionModelHelper
(from the Facebook detectron repo) class object, which is a subclass ofcnn.CNNModelHelper
. But I got the error: