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