MultiDimVar#
- class penzai.core.shapecheck.MultiDimVar[source]#
Bases:
objectA variable standing in for a sequence or dictionary axis names.
The usual way to create a
MultiDimVaris by unpacking thevarfunction, e.g. as(1, 2, *var("foo"), 5, 6)or{'a': 1, **var("foo"), 'c': 5}. You can also cast the output ofvarto a tuple or a dict.- Variables:
name (str) – The unique name for this variable. Variable identity is based on this name.
Methods
__init__(name)Attributes
name