mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
[lite] add more options for lite backend (#313)
* [cmake] support Android arm64-v8a & armeabi-v7a native c++ sdk * [cmake] fixed patchelf download on mac and android * [lite] Add threads and power_mode option support * [pybind] update runtime pybind for lite power mode * [python] Add set_lite_power_mode api to runtime * [Lite] add lite enable_fp16 option support * [lite] add more options for lite backend. * [cmake] fixed Paddle Lite typo * [runtime] format LitePowerMode enum comments * [runtime] format lite option comments
This commit is contained in:
@@ -100,6 +100,12 @@ class RuntimeOption:
|
||||
def set_paddle_mkldnn_cache_size(self, cache_size):
|
||||
return self._option.set_paddle_mkldnn_cache_size(cache_size)
|
||||
|
||||
def enable_lite_fp16(self):
|
||||
return self._option.enable_lite_fp16()
|
||||
|
||||
def disable_lite_fp16(self):
|
||||
return self._option.disable_lite_fp16()
|
||||
|
||||
def set_lite_power_mode(self, mode):
|
||||
return self._option.set_lite_power_mode(mode)
|
||||
|
||||
|
Reference in New Issue
Block a user