提交 449f128d authored 作者: Frederic's avatar Frederic

better err msg

上级 14e3a1e8
...@@ -52,7 +52,7 @@ def dnn_available(): ...@@ -52,7 +52,7 @@ def dnn_available():
dnn_available.avail = False dnn_available.avail = False
return False return False
if not init_dev.device.startswith('cuda'): if not init_dev.device.startswith('cuda'):
dnn_available.msg = "Not on a CUDA device" dnn_available.msg = "Not on a CUDA device. Got %s." % init_dev.device
dnn_available.avail = False dnn_available.avail = False
return False return False
# This is a hack because bin_id is in the from of # This is a hack because bin_id is in the from of
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论