torch.foreach.round#
- torch.foreach.round(inputs: TensorList, /) tuple[Tensor, ...][source]#
Applies
torch.round()to each tensor ininputs.This is semantically equivalent to applying
torch.round()independently at every list position. Does not mutate its arguments and returns a tuple of result tensors.Tensor-list arguments must be non-empty. An accelerated multi-tensor implementation is used only when supported by the inputs; otherwise the operation falls back to per-tensor execution.
The
decimalsargument is not supported.