_softmax_native.h 1021 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. // @generated by torchgen/gen.py from NativeFunction.h
  3. #include <c10/core/Scalar.h>
  4. #include <c10/core/Storage.h>
  5. #include <c10/core/TensorOptions.h>
  6. #include <c10/util/Deprecated.h>
  7. #include <c10/util/Optional.h>
  8. #include <c10/core/QScheme.h>
  9. #include <ATen/core/Reduction.h>
  10. #include <ATen/core/Tensor.h>
  11. #include <tuple>
  12. #include <vector>
  13. #include <ATen/ops/_softmax_meta.h>
  14. namespace at {
  15. namespace native {
  16. struct TORCH_API structured_softmax_cpu_out : public at::meta::structured__softmax {
  17. void impl(const at::Tensor & self, int64_t dim, bool half_to_float, const at::Tensor & out);
  18. };
  19. struct TORCH_API structured_softmax_cuda_out : public at::meta::structured__softmax {
  20. void impl(const at::Tensor & self, int64_t dim, bool half_to_float, const at::Tensor & out);
  21. };
  22. TORCH_API at::Tensor softmax_nested(const at::Tensor & self, int64_t dim, bool half_to_float);
  23. TORCH_API at::Tensor mkldnn_softmax(const at::Tensor & self, int64_t dim, bool half_to_float);
  24. } // namespace native
  25. } // namespace at