zeros_compositeexplicitautograd_dispatch.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. // @generated by torchgen/gen.py from DispatchKeyFunction.h
  3. // NB: The implementing C++ file is RegisterDispatchKey.cpp
  4. // The only #includes we need are for custom classes that have defaults in the C++ API
  5. #include <c10/core/MemoryFormat.h>
  6. #include <c10/core/Scalar.h>
  7. #include <ATen/core/Reduction.h>
  8. // Forward declarations of any types needed in the operator signatures.
  9. // We can't directly include these classes because it will cause circular include dependencies.
  10. // This file is included by TensorBody.h, which defines the Tensor class.
  11. #include <ATen/core/ATen_fwd.h>
  12. namespace at {
  13. namespace compositeexplicitautograd {
  14. TORCH_API at::Tensor zeros(at::IntArrayRef size, c10::optional<at::DimnameList> names, at::TensorOptions options={});
  15. TORCH_API at::Tensor zeros(at::IntArrayRef size, c10::optional<at::DimnameList> names, c10::optional<at::ScalarType> dtype, c10::optional<at::Layout> layout, c10::optional<at::Device> device, c10::optional<bool> pin_memory);
  16. TORCH_API at::Tensor & zeros_out(at::Tensor & out, at::IntArrayRef size, c10::optional<at::DimnameList> names);
  17. TORCH_API at::Tensor & zeros_outf(at::IntArrayRef size, c10::optional<at::DimnameList> names, at::Tensor & out);
  18. TORCH_API at::Tensor zeros(at::IntArrayRef size, at::TensorOptions options={});
  19. TORCH_API at::Tensor zeros(at::IntArrayRef size, c10::optional<at::ScalarType> dtype, c10::optional<at::Layout> layout, c10::optional<at::Device> device, c10::optional<bool> pin_memory);
  20. TORCH_API at::Tensor zeros_symint(c10::SymIntArrayRef size, at::TensorOptions options={});
  21. TORCH_API at::Tensor zeros_symint(c10::SymIntArrayRef size, c10::optional<at::ScalarType> dtype, c10::optional<at::Layout> layout, c10::optional<at::Device> device, c10::optional<bool> pin_memory);
  22. TORCH_API at::Tensor & zeros_out(at::Tensor & out, at::IntArrayRef size);
  23. TORCH_API at::Tensor & zeros_outf(at::IntArrayRef size, at::Tensor & out);
  24. TORCH_API at::Tensor & zeros_symint_out(at::Tensor & out, c10::SymIntArrayRef size);
  25. TORCH_API at::Tensor & zeros_symint_outf(c10::SymIntArrayRef size, at::Tensor & out);
  26. } // namespace compositeexplicitautograd
  27. } // namespace at