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 | #include <ATen/ops/_softmax_backward_data_meta.h> |
16 | |
17 | namespace at { |
18 | namespace native { |
19 | struct TORCH_API structured_softmax_backward_cpu_out : public at::meta::structured__softmax_backward_data { |
20 | void impl(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype, const at::Tensor & grad_input); |
21 | }; |
22 | struct TORCH_API structured_softmax_backward_cuda_out : public at::meta::structured__softmax_backward_data { |
23 | void impl(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype, const at::Tensor & grad_input); |
24 | }; |
25 | TORCH_API at::Tensor nested_softmax_backward(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, at::ScalarType input_dtype); |
26 | } // namespace native |
27 | } // namespace at |
28 | |