[Other] Optimize Poros backend (#1232)

* Optimize Poros backend

* fix error

* Add more pybind

* fix conflicts

* add some deprecate notices
This commit is contained in:
Jason
2023-02-07 10:18:03 +08:00
committed by GitHub
parent f73a538f61
commit 7c9bf11c44
15 changed files with 397 additions and 283 deletions

View File

@@ -51,7 +51,6 @@ if __name__ == '__main__':
option.use_poros_backend()
option.set_model_path(
"std_resnet50_script.pt", model_format=ModelFormat.TORCHSCRIPT)
option.is_dynamic = True
# compile
runtime = fd.Runtime(option)
runtime.compile(prewarm_datas)