deepmd_gnn.export#
Helpers used by PyTorch-exportable model paths.
Functions#
| Append a sentinel neighbor so symbolic export keeps neighbor axes dynamic. |
| Clear over-specialized guards from the next export of |
Module Contents#
- deepmd_gnn.export.pad_nlist_for_export(nlist: torch.Tensor) torch.Tensor[source]#
Append a sentinel neighbor so symbolic export keeps neighbor axes dynamic.
- deepmd_gnn.export.clear_export_guards_once(traced: torch.nn.Module) None[source]#
Clear over-specialized guards from the next export of
traced.make_fxtraces may specialize symbolic atom counts too aggressively. DeePMD’s export path callstorch.export.exportimmediately after tracing, so this one-shot wrapper relaxes those constraints only for that export.