Skip to content

Commit

Permalink
Add aten::lerp_ (#1063)
Browse files Browse the repository at this point in the history
- `lerp_.Scalar`
- `lerp_.Tensor`

Delegates to structured ops `lerp.Scalar_out` and `lerp.Tensor_out`
respectively. The corresponding kernels `xpu::lerp_scalar_kernel` and
`xpu::lerp_tensor_kernel` are already implemented.
  • Loading branch information
xytintel authored Nov 8, 2024
2 parents 202794a + 11d208c commit 22767db
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions yaml/native/native_functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4501,6 +4501,12 @@
structured_delegate: lerp.Scalar_out
tags: pointwise

- func: lerp_.Scalar(Tensor(a!) self, Tensor end, Scalar weight) -> Tensor(a!)
device_check: NoCheck # TensorIterator
variants: method
structured_delegate: lerp.Scalar_out
tags: pointwise

- func: lerp.Tensor(Tensor self, Tensor end, Tensor weight) -> Tensor
device_check: NoCheck # TensorIterator
variants: method, function
Expand All @@ -4515,6 +4521,12 @@
XPU: lerp_Tensor
tags: pointwise

- func: lerp_.Tensor(Tensor(a!) self, Tensor end, Tensor weight) -> Tensor(a!)
device_check: NoCheck # TensorIterator
variants: method
structured_delegate: lerp.Tensor_out
tags: pointwise

- func: addcdiv.out(Tensor self, Tensor tensor1, Tensor tensor2, *, Scalar value=1, Tensor(a!) out) -> Tensor(a!)
structured: True
structured_inherits: TensorIteratorBase
Expand Down

0 comments on commit 22767db

Please sign in to comment.