cat_native.h 1.4 KB

12345678910111213141516171819202122232425262728293031
  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/cat_meta.h>
  14. namespace at {
  15. namespace native {
  16. struct TORCH_API structured_cat_out_cpu : public at::meta::structured_cat {
  17. void impl(const at::ITensorListRef & tensors, int64_t dim, int64_t valid, bool all_contiguous, bool all_same_dtype, bool all_same_sizes_and_stride, at::MemoryFormat memory_format, const at::Tensor & out);
  18. };
  19. struct TORCH_API structured_cat_out_cuda : public at::meta::structured_cat {
  20. void impl(const at::ITensorListRef & tensors, int64_t dim, int64_t valid, bool all_contiguous, bool all_same_dtype, bool all_same_sizes_and_stride, at::MemoryFormat memory_format, const at::Tensor & out);
  21. };
  22. TORCH_API at::Tensor cat_sparse(const at::ITensorListRef & tensors, int64_t dim=0);
  23. TORCH_API at::Tensor cat_quantized_cpu(const at::ITensorListRef & tensors, int64_t dim=0);
  24. TORCH_API at::Tensor & cat_out_quantized_cpu(const at::ITensorListRef & tensors, int64_t dim, at::Tensor & out);
  25. TORCH_API at::Tensor cat(at::TensorList tensors, at::Dimname dim);
  26. TORCH_API at::Tensor & cat_out(at::TensorList tensors, at::Dimname dim, at::Tensor & out);
  27. } // namespace native
  28. } // namespace at