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