[Backend] Support Intel GPU with OpenVINO (#472)

* Update ov_backend.cc

* Update ov_backend.cc

* support set openvino device
This commit is contained in:
Jason
2022-11-17 17:08:49 +08:00
committed by GitHub
parent 3c5e8cd95d
commit dbe96cd049
7 changed files with 24 additions and 3 deletions

View File

@@ -269,6 +269,11 @@ class RuntimeOption:
"""
return self._option.set_paddle_mkldnn(use_mkldnn)
def set_openvino_device(self, name="CPU"):
"""Set device name for OpenVINO, default 'CPU', can also be 'AUTO', 'GPU', 'GPU.1'....
"""
return self._option.set_openvino_device(name)
def enable_paddle_log_info(self):
"""Enable print out the debug log information while using Paddle Inference backend, the log information is disabled by default.
"""