torch.nn.utils.get_total_norm
- torch.nn.utils.get_total_norm(tensors, norm_type=2.0, error_if_nonfinite=False, foreach=None)
Compute the norm of an iterable of tensors.
The norm is computed over the norms of the individual tensors, as if the norms of the individual tensors were concatenated into a single vector.
- Parameters