You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(pt-expt): add .pte and .pt2 tests for dp convert-backend (#5384)
## Summary
- Add `.pte` and `.pt2` to parameterized extensions in `test_models.py`
to verify `convert-backend` works for the pt_expt exportable formats
- Switch `fparam_aparam` model (1 atom type) from `type_one_side=False`
to `True` (with `ndim` 2→1), which is equivalent for single-type models
but enables pt_expt export
- Skip `se_e2_a`/`se_e2_r` for `.pte`/`.pt2` — `type_one_side=False`
with multiple types triggers `GuardOnDataDependentSymNode` in `make_fx`
(data-dependent indexing in `NetworkCollection(ndim=2)`)
- Skip `test_descriptor` and `test_fitting_last_layer` for `.pte`/`.pt2`
(not implemented in pt_expt `DeepEval`)
## Test plan
- [x] `python -m pytest source/tests/infer/test_models.py -v` — 55
passed, 67 skipped
- [x] `python -m pytest source/tests/infer/test_models.py -v -k "pte or
pt2"` — 12 passed (fparam_aparam), rest skipped
- [x] Existing `.pb`/`.pth` tests unaffected
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Updated test case configurations with adjusted model descriptor and
embedding parameters
* Extended test suite parameterization to support additional model file
formats (.pte, .pt2)
* Reorganized model compatibility skip conditions for improved test
structure and maintainability
* Added special handling when loading certain model formats to ensure
stable device behavior during tests
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
0 commit comments