#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION) #pragma once #include namespace at::detail { TORCH_CUDA_CPP_API TensorBase empty_cuda( IntArrayRef size, ScalarType dtype, std::optional device_opt, std::optional memory_format_opt); TORCH_CUDA_CPP_API TensorBase empty_cuda( IntArrayRef size, std::optional dtype_opt, std::optional layout_opt, std::optional device_opt, std::optional pin_memory_opt, std::optional memory_format_opt); TORCH_CUDA_CPP_API TensorBase empty_cuda( IntArrayRef size, const TensorOptions &options); TORCH_CUDA_CPP_API TensorBase empty_strided_cuda( IntArrayRef size, IntArrayRef stride, ScalarType dtype, std::optional device_opt); TORCH_CUDA_CPP_API TensorBase empty_strided_cuda( IntArrayRef size, IntArrayRef stride, std::optional dtype_opt, std::optional layout_opt, std::optional device_opt, std::optional pin_memory_opt); TORCH_CUDA_CPP_API TensorBase empty_strided_cuda( IntArrayRef size, IntArrayRef stride, const TensorOptions &options); } // namespace at::detail #else #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined." #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)