-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
79 changed files
with
4,113 additions
and
900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <ATen/native/sparse/SparseStubs.h> | ||
#include <ATen/native/sparse/xpu/sycl/SparseBinaryOpIntersectionKernels.h> | ||
|
||
namespace at::native { | ||
|
||
REGISTER_XPU_DISPATCH( | ||
mul_sparse_sparse_out_stub, | ||
&xpu::mul_sparse_sparse_kernel); | ||
REGISTER_XPU_DISPATCH( | ||
sparse_mask_intersection_out_stub, | ||
&xpu::sparse_mask_intersection_kernel); | ||
REGISTER_XPU_DISPATCH( | ||
sparse_mask_projection_out_stub, | ||
&xpu::sparse_mask_projection_kernel); | ||
|
||
} // namespace at::native |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <ATen/native/sparse/SparseStubs.h> | ||
#include <ATen/native/sparse/xpu/sycl/SparseTensorKernels.h> | ||
|
||
namespace at::native { | ||
|
||
using namespace at::sparse; | ||
|
||
SparseTensor _coalesce_sparse_xpu(const SparseTensor& self) { | ||
return xpu::coalesce_sparse_kernel(self); | ||
} | ||
|
||
REGISTER_XPU_DISPATCH(flatten_indices_stub, &xpu::flatten_indices_kernel); | ||
|
||
} // namespace at::native |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <ATen/native/sparse/xpu/sycl/SparseTensorMathKernels.h> | ||
|
||
namespace at::native { | ||
|
||
using namespace at::sparse; | ||
|
||
SparseTensor& add_out_sparse_xpu( | ||
const SparseTensor& t, | ||
const SparseTensor& src, | ||
const Scalar& value, | ||
SparseTensor& r_) { | ||
return xpu::add_sparse_kernel(t, src, value, r_); | ||
} | ||
|
||
SparseTensor& mul_out_sparse_xpu( | ||
const Tensor& t_, | ||
const Tensor& src_, | ||
SparseTensor& r_) { | ||
return xpu::mul_sparse_kernel(t_, src_, r_); | ||
} | ||
|
||
} // namespace at::native |
Oops, something went wrong.