torch.nn.UninitializedParameter.materialize
UninitializedParameter.materialize(shape: Shape): ParameterMaterialize the parameter with the given shape. Creates a Parameter filled with zeros that can then be initialized.
Parameters
shapeShape- The shape for the parameter
Returns
Parameter– The materialized Parameter