mapping_networks.runtime.ParameterTree

class mapping_networks.runtime.ParameterTree(parameters: Mapping[str, Tensor])

An immutable mapping from fully qualified parameter names to tensors.

The mapping itself is immutable, while its tensor values retain normal PyTorch autograd semantics. Keeping names attached to generated tensors avoids positional split/reshape contracts leaking through the package.

__init__(parameters: Mapping[str, Tensor]) None

Methods

__init__(parameters)

get(k[,d])

items()

keys()

map(function)

Apply function to every tensor without discarding names.

to_dict()

Return a shallow mutable copy suitable for functional_call.

values()