未验证 提交 09a611b0 编写于 作者: D duanyanhui 提交者: GitHub

update npu api (#8172)

上级 3c8ede65
......@@ -868,7 +868,7 @@ def load_predictor(model_dir,
elif device == 'NPU':
if config.lite_engine_enabled():
config.enable_lite_engine()
config.enable_npu()
config.enable_custom_device('npu')
else:
config.disable_gpu()
config.set_cpu_math_library_num_threads(cpu_threads)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册