#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION) #pragma once #include #include #if MIOPEN_VERSION_MAJOR > 3 || (MIOPEN_VERSION_MAJOR == 3 && MIOPEN_VERSION_MINOR >= 4) // miopen 3.4 moved find mode from private header to public header #else // from miopen_internal.h extern "C" { typedef enum { miopenConvolutionFindModeNormal = 1, /*!< Normal mode */ } miopenConvolutionFindMode_t; miopenStatus_t miopenSetConvolutionFindMode( miopenConvolutionDescriptor_t convDesc, miopenConvolutionFindMode_t findMode); } #endif #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)