torch.nn.UninitializedParameter
class UninitializedParameternew UninitializedParameter(options: UninitializedOptions = {})
- readonly
is_materialized(boolean) - – Whether this parameter has been materialized.
- readonly
dtype(DType) - – The dtype this parameter will have when materialized.
- readonly
device('cpu' | 'webgpu') - – The device this parameter will be on when materialized.
A parameter that is not initialized. Used by lazy modules to defer parameter creation until the first forward pass when the input shape is known.