diff --git a/src/ATen/native/xpu/BinaryOps.cpp b/src/ATen/native/xpu/BinaryOps.cpp index d28c08b12..14bc49990 100644 --- a/src/ATen/native/xpu/BinaryOps.cpp +++ b/src/ATen/native/xpu/BinaryOps.cpp @@ -49,31 +49,6 @@ Tensor& XPUNativeFunctions::add_out( return out; } -Tensor XPUNativeFunctions::add( - const Tensor& self, - const Scalar& other, - const Scalar& alpha) { - auto wrapper = native::wrapped_scalar_tensor(other); - return XPUNativeFunctions::add(self, wrapper, alpha); -} - -Tensor& XPUNativeFunctions::add_( - Tensor& self, - const Scalar& other, - const Scalar& alpha) { - auto wrapper = native::wrapped_scalar_tensor(other); - return XPUNativeFunctions::add_(self, wrapper, alpha); -} - -Tensor& XPUNativeFunctions::add_out( - const Tensor& self, - const Scalar& other, - const Scalar& alpha, - Tensor& out) { - auto wrapper = native::wrapped_scalar_tensor(other); - return XPUNativeFunctions::add_out(self, wrapper, alpha, out); -} - Tensor XPUNativeFunctions::sub( const Tensor& self, const Tensor& other, @@ -131,24 +106,6 @@ Tensor& XPUNativeFunctions::mul_out( return out; } -Tensor XPUNativeFunctions::mul(const Tensor& self, const Scalar& other) { - auto wrapper = native::wrapped_scalar_tensor(other); - return XPUNativeFunctions::mul(self, wrapper); -} - -Tensor& XPUNativeFunctions::mul_(Tensor& self, const Scalar& other) { - auto wrapper = native::wrapped_scalar_tensor(other); - return XPUNativeFunctions::mul_(self, wrapper); -} - -Tensor& XPUNativeFunctions::mul_out( - const Tensor& self, - const Scalar& other, - Tensor& out) { - auto wrapper = native::wrapped_scalar_tensor(other); - return XPUNativeFunctions::mul_out(self, wrapper, out); -} - Tensor XPUNativeFunctions::div(const Tensor& self, const Tensor& other) { Tensor out; TensorIterator iter; @@ -174,24 +131,6 @@ Tensor& XPUNativeFunctions::div_out( return out; } -Tensor XPUNativeFunctions::div(const Tensor& self, const Scalar& other) { - auto wrapper = native::wrapped_scalar_tensor(other); - return XPUNativeFunctions::div(self, wrapper); -} - -Tensor& XPUNativeFunctions::div_(Tensor& self, const Scalar& other) { - auto wrapper = native::wrapped_scalar_tensor(other); - return XPUNativeFunctions::div_(self, wrapper); -} - -Tensor& XPUNativeFunctions::div_out( - const Tensor& self, - const Scalar& other, - Tensor& out) { - auto wrapper = native::wrapped_scalar_tensor(other); - return XPUNativeFunctions::div_out(self, wrapper, out); -} - static inline TensorIterator meta_func_div_Tensor_mode( const Tensor& self, const Tensor& other, diff --git a/yaml/xpu_functions.yaml b/yaml/xpu_functions.yaml index db3df0667..263c522d0 100644 --- a/yaml/xpu_functions.yaml +++ b/yaml/xpu_functions.yaml @@ -6,9 +6,6 @@ supported: - add.Tensor - add_.Tensor - add.out - - add.Scalar - - add_.Scalar - - add.Scalar_out - _adaptive_avg_pool2d_backward - adaptive_avg_pool2d.out - _adaptive_avg_pool2d @@ -28,15 +25,9 @@ supported: - mul.Tensor - mul_.Tensor - mul.out - - mul.Scalar - - mul_.Scalar - - mul.Scalar_out - div.Tensor - div_.Tensor - div.out - - div.Scalar - - div_.Scalar - - div.Scalar_out - div.Tensor_mode - div_.Tensor_mode - div.out_mode