torch.foreach.lerp#
- torch.foreach.lerp(inputs: TensorList, end: TensorList, weight: Scalar, /) tuple[Tensor, ...][source]#
- torch.foreach.lerp(inputs: TensorList, end: TensorList, weight: ScalarList, /) tuple[Tensor, ...]
- torch.foreach.lerp(inputs: TensorList, end: TensorList, weight: TensorList, /) tuple[Tensor, ...]
Applies
torch.lerp()to corresponding tensors ininputsandend.This is semantically equivalent to applying
torch.lerp()independently at every list position. Does not mutate its arguments and returns a tuple of result tensors.Tensor-list arguments must be non-empty. Corresponding tensor or scalar lists must have the same length. An accelerated multi-tensor implementation is used only when supported by the inputs; otherwise the operation falls back to per-tensor execution.
weightmay be one shared scalar, a scalar list or tuple, or a tensor list.