torch.foreach.frac#
- torch.foreach.frac(inputs: TensorList, /) tuple[Tensor, ...][source]#
Applies
torch.frac()to each tensor ininputs.This is semantically equivalent to applying
torch.frac()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.