Skip to main content

list_param_ids

Function list_param_ids 

pub fn list_param_ids<M>(module: &M) -> Vec<ParamId>
where M: Module,
Expand description

Lists the IDs of all tensor-backed parameters in a module.

This includes floating-point, integer and boolean tensor parameters. Module-owned non-tensor control values such as Flag are excluded.

To create a group containing every module-owned value in a subtree, including flags, use ParamGroup::ids_from_module.