Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
RunningLeon committed Aug 28, 2023
1 parent dd1508d commit c0af1b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
python tools/check_env.py
- name: Run python unittests and generate coverage report
run: |
pytest tests/test_mmcv/test_mmcv_ops.py::test_ONNXNMSop
coverage run --branch --source mmdeploy -m pytest -rsE tests
coverage xml
coverage report -m
Expand Down Expand Up @@ -190,7 +189,6 @@ jobs:
- name: Run unittests and generate coverage report
id: badge_status
run: |
pytest tests/test_mmcv/test_mmcv_ops.py::test_ONNXNMSop
coverage run --branch --source mmdeploy -m pytest -rsE tests
coverage xml
coverage report -m
Expand Down Expand Up @@ -245,7 +243,6 @@ jobs:
python tools/check_env.py
- name: Run unittests and generate coverage report
run: |
pytest tests/test_mmcv/test_mmcv_ops.py::test_ONNXNMSop
coverage run --branch --source mmdeploy -m pytest -rsE tests
coverage xml
coverage report -m
Expand Down
2 changes: 1 addition & 1 deletion mmdeploy/apis/onnx/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def wrapper(*arg, **kwargs):
if isinstance(args, torch.Tensor):
args = args.cpu()
elif isinstance(args, (tuple, list)):
args = [_.cpu() for _ in args]
args = tuple([_.cpu() for _ in args])
else:
raise RuntimeError(f'Not supported args: {args}')
torch.onnx.export(
Expand Down

0 comments on commit c0af1b9

Please sign in to comment.