klyn.math.nn.layers.Dense.parameter
method
public override parameter(index as Long) as NDArray<T>
Description

Returns weights (0) or bias (1) without copying.

Parameters
ParameterDescription
indexParameter index.
Returns

Mutable parameter matrix.

Throws
  • ValueException before build; IndexException for another index.
Example

weights = layer.parameter(0)