1 | #pragma once |
2 | |
3 | // @generated by torchgen/gen.py from NativeFunction.h |
4 | |
5 | #include <c10/core/Scalar.h> |
6 | #include <c10/core/Storage.h> |
7 | #include <c10/core/TensorOptions.h> |
8 | #include <c10/util/Deprecated.h> |
9 | #include <c10/util/Optional.h> |
10 | #include <c10/core/QScheme.h> |
11 | #include <ATen/core/Reduction.h> |
12 | #include <ATen/core/Tensor.h> |
13 | #include <tuple> |
14 | #include <vector> |
15 | |
16 | |
17 | namespace at { |
18 | namespace native { |
19 | TORCH_API at::Tensor & to_sparse_sparse_dim_out(const at::Tensor & self, int64_t sparse_dim, at::Tensor & out); |
20 | TORCH_API at::Tensor dense_to_sparse(const at::Tensor & self, int64_t sparse_dim); |
21 | TORCH_API at::Tensor sparse_coo_to_sparse(const at::Tensor & self, int64_t sparse_dim); |
22 | TORCH_API at::Tensor sparse_compressed_to_sparse(const at::Tensor & self, int64_t sparse_dim); |
23 | TORCH_API at::Tensor & to_sparse_out(const at::Tensor & self, c10::optional<at::Layout> layout, at::OptionalIntArrayRef blocksize, c10::optional<int64_t> dense_dim, at::Tensor & out); |
24 | TORCH_API at::Tensor dense_to_sparse(const at::Tensor & self, c10::optional<at::Layout> layout=c10::nullopt, at::OptionalIntArrayRef blocksize=c10::nullopt, c10::optional<int64_t> dense_dim=c10::nullopt); |
25 | TORCH_API at::Tensor sparse_coo_to_sparse(const at::Tensor & self, c10::optional<at::Layout> layout=c10::nullopt, at::OptionalIntArrayRef blocksize=c10::nullopt, c10::optional<int64_t> dense_dim=c10::nullopt); |
26 | TORCH_API at::Tensor sparse_compressed_to_sparse(const at::Tensor & self, c10::optional<at::Layout> layout=c10::nullopt, at::OptionalIntArrayRef blocksize=c10::nullopt, c10::optional<int64_t> dense_dim=c10::nullopt); |
27 | } // namespace native |
28 | } // namespace at |
29 | |