[Fix] Add PyTorch 2.0 CI and fix unit tests (#1026)
* [Enhance] Make sure the FileHandler still alive after * minor refine * minor refine * refine unit test * update CI * update CI * Fix CI * fix build_windows * fix build_windows * fix build_windows * fix build_windows * debug * debug * debug * debug * debug * debug * debug * test windows CI * Fix * Debug * Fix unit test * Fix unit test * Fix CI * update image version * update action/checkout and action/setup-python * add condition to skip test compile * [Fix] Update CI and fix unit test * check compiling by attempting compilation * check compiling by attempting compilation * check compiling by attempting compilation * use windows-2022 in runs on * Apply suggestions from code review Co-authored-by:Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> * update yml * remove unnecessary assert * assert grad is None according to the PyTorch version * Fix code --------- Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Showing
- .circleci/test.yml 10 additions, 3 deletions.circleci/test.yml
- .github/workflows/merge_stage_test.yml 66 additions, 22 deletions.github/workflows/merge_stage_test.yml
- .github/workflows/pr_stage_test.yml 55 additions, 14 deletions.github/workflows/pr_stage_test.yml
- mmengine/analysis/jit_handles.py 7 additions, 1 deletionmmengine/analysis/jit_handles.py
- tests/test_model/test_base_model/test_base_model.py 2 additions, 3 deletionstests/test_model/test_base_model/test_base_model.py
- tests/test_model/test_model_utils.py 2 additions, 13 deletionstests/test_model/test_model_utils.py
- tests/test_model/test_wrappers/test_model_wrapper.py 6 additions, 3 deletionstests/test_model/test_wrappers/test_model_wrapper.py
- tests/test_optim/test_optimizer/test_optimizer_wrapper_dict.py 7 additions, 2 deletions.../test_optim/test_optimizer/test_optimizer_wrapper_dict.py
- tests/test_runner/test_runner.py 25 additions, 3 deletionstests/test_runner/test_runner.py
Loading
Please register or sign in to comment