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
Browse filesBrowse the repository at this point in the historyBrowse files
Han Wang
committed
fix(ci): keep the linear wire type shared, count tf32 warns at the source
Two CI failures on deepmodeling#5884:
- `test_linear_ener.py::test_pt_expt_consistent_with_ref` (all 4 cases, CPU
+ CUDA): the flat linear dict emitted `"type": "linear_ener"` while
pt/tf write `"linear"`, so the cross-backend serialization comparison
diverged. One wire format for all backends wins: emit `"linear"` again
and keep `"linear_ener"` as an accepted atomic alias. The energy-specific
name stays the config/model type, and it is now also registered as a
MODEL alias in dpmodel/pt_expt so a serialized composition round-trips
through `BaseModel.deserialize`.
- `test_get_model_dpa4.py::test_enable_tf32_warns_once[True]` (CPU +
CUDA): counted records through caplog, which reads a ROOT handler, so
the count moved with whatever global logging state earlier tests left
behind (0 with `set_log_handles`' propagate=False, 2 in the CI shard).
Count on the EMITTING logger with a dedicated handler instead -- exactly
one record per `log.warning`, independent of propagation and of handlers
attached elsewhere.
Also register test_zbl_bridging.py in `_AOTI_COMPILE_MODULES`: it freezes a
.pt2 and the drift guard flagged it, so its compile would otherwise run in
the CUDA lane.
0 commit comments