Handle.h 447 B

1234567891011121314
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #include <ATen/cuda/ATenCUDAGeneral.h>
  4. #include <ATen/cudnn/cudnn-wrapper.h>
  5. namespace at::native {
  6. TORCH_CUDA_CPP_API cudnnHandle_t getCudnnHandle();
  7. } // namespace at::native
  8. #else
  9. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  10. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)