update pplnn to v0.9.2 to resolve ci error (#1934)

* [Fix] Fix package_tools (#1772)

* copy mmdeploy_onnx2ncnn when build wheel package

* prevent copy build/lib/* when build wheel

* fix mmdeploy_builder.py

* try to fix backend-pplnn ci
pull/1944/head
Chen Xin 2023-03-29 21:14:59 +08:00 committed by GitHub
parent f7c484a046
commit bbee83da6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@ include requirements/*.txt
include mmdeploy/backend/ncnn/*.so
include mmdeploy/backend/ncnn/*.dll
include mmdeploy/backend/ncnn/*.pyd
include mmdeploy/backend/ncnn/mmdeploy_onnx2ncnn*
include mmdeploy/lib/*.so
include mmdeploy/lib/*.so*
include mmdeploy/lib/*.dll

View File

@ -407,7 +407,7 @@ def create_mmdeploy_runtime(cfg: Dict, work_dir: str):
bdist_cmd = _create_bdist_cmd(cfg, c_ext=True, dist_dir=sdk_wheel_dir)
if 'cuda' in cmake_cfg['MMDEPLOY_TARGET_DEVICES']:
bdist_cmd += ' --use-gpu'
_call_command(bdist_cmd, '.mmdeploy_runtime')
_call_command(bdist_cmd, sdk_python_package_dir)
_remove_if_exist(sdk_python_package_dir)

View File

@ -50,7 +50,7 @@ def install_pplnn(dep_dir, build_cuda):
# git clone
if not os.path.exists(pplnn_dir):
os.system(
'git clone --depth 1 --branch v0.9.1 https://github.com/openppl-public/ppl.nn/' # noqa: E501
'git clone --depth 1 --branch v0.9.2 https://github.com/openppl-public/ppl.nn/' # noqa: E501
)
# build