mshr-h opened a new pull request, #19495:
URL: https://github.com/apache/tvm/pull/19495

   This PR adds first-class `nn.ParameterList` and `nn.ParameterDict` 
containers to the Relax frontend.
   
   These containers provide PyTorch-like list/dict registration for raw 
`nn.Parameter` objects while preserving Relax frontend semantics: values must 
be explicit `nn.Parameter` instances, with no automatic tensor-to-parameter 
conversion.
   
   ### Changes
   
   - Add public `nn.ParameterList` and `nn.ParameterDict` exports.
   - Support stable parameter names in traversal:
     - `params.0`, `params.1`
     - `params.foo`, `params.bar`
   - Integrate the new containers with:
     - `named_parameters()`
     - `parameters()`
     - `state_dict()`
     - `load_state_dict()`
     - `to(dtype=...)`
     - `export_tvm()`
     - `nn.Mutator`
   - Add focused tests for basic container behavior, type validation, nested 
traversal, export parameter names, state loading, dtype conversion, and mutator 
naming.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to