Handle.h 443 B

1234567891011121314
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. #pragma once
  3. #include <ATen/miopen/miopen-wrapper.h>
  4. #include <c10/macros/Export.h>
  5. namespace at::native {
  6. TORCH_CUDA_CPP_API miopenHandle_t getMiopenHandle();
  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)