Rate this Page

torch.nn.parameter.is_lazy#

torch.nn.parameter.is_lazy(param)[source]#

Returns whetherparam is anUninitializedParameter orUninitializedBuffer.

Parameters

param (Any) – the input to check.

Return type

bool