3.6.9. unit_scaling.transforms.Metrics
- class unit_scaling.transforms.Metrics(fwd_tensor: Tensor)[source]
A set of metrics representing useful information about a tensor, in the forward and backward pass.
metrics.fwd
, and optionallymetrics.bwd
, are objects of typeData
, containing metrics about the tensor in the forward pass and its gradient in the backward pass.