未验证 提交 9ea3ac2d 编写于 作者: D duanyanhui 提交者: GitHub

update npu api (#8179)

上级 5ef02647
......@@ -865,7 +865,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.
先完成此消息的编辑!
想要评论请 注册