diff --git a/src/ATen/native/xpu/TensorProperties.cpp b/src/ATen/native/xpu/TensorProperties.cpp new file mode 100644 index 000000000..428d18fcd --- /dev/null +++ b/src/ATen/native/xpu/TensorProperties.cpp @@ -0,0 +1,16 @@ +#include + +#ifndef AT_PER_OPERATOR_HEADERS +#include +#include +#else +#include +#endif + +namespace at { + +bool XPUNativeFunctions::is_set_to(const Tensor& self, const Tensor& src) { + return at::native::is_set_to(self, src); +} + +} // namespace at diff --git a/yaml/xpu_functions.yaml b/yaml/xpu_functions.yaml index 10fd6748b..e76bfcd8e 100644 --- a/yaml/xpu_functions.yaml +++ b/yaml/xpu_functions.yaml @@ -455,6 +455,7 @@ supported: - _cdist_forward - _pin_memory - is_pinned + - is_set_to - bucketize.Tensor - bucketize.Tensor_out - bucketize.Scalar