5.7. Param¶
- class Param(TensorLike)¶
Parameter is a place-holder for constant at modeling phase. Parameter has a shape but its data is undetermined at modeling phase.
Properties
The declared attribute for parameter.
The name of this parameter
Methods
Construct a new parameter.
- property attr: int¶
The declared attribute for parameter.
Attributes include:
nonneg = 0
nonpos = 1
symmetric = 2
diag = 3
PSD = 4
NSD = 5
pos = 6
neg = 7
For example, if parameter is declared as PSD, this value is 16(1 << 4).
- property name: str¶
The name of this parameter
- __init__(name: str, *shape: int, **attr: bool)¶
Construct a new parameter.