From 2b9ef7e24931d1df387179e2448384ddc29dd9e7 Mon Sep 17 00:00:00 2001 From: dzhwinter Date: Tue, 5 Jun 2018 23:55:13 -0700 Subject: [PATCH] "fix" --- paddle/fluid/platform/cudnn_helper.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/paddle/fluid/platform/cudnn_helper.h b/paddle/fluid/platform/cudnn_helper.h index 2ca3d6e8947..6ea4f8b7cba 100644 --- a/paddle/fluid/platform/cudnn_helper.h +++ b/paddle/fluid/platform/cudnn_helper.h @@ -68,6 +68,19 @@ inline const char* cudnnGetErrorString(cudnnStatus_t status) { } \ } while (false) +enum class DataLayout { // Not use + kNHWC, + kNCHW, + kNCDHW, + kNCHW_VECT_C, +}; + +enum class PoolingMode { + kMaximum, + kAverage, + kMaximumDeterministic, +}; + #if CUDNN_VERSION < 6000 #pragma message "CUDNN version under 6.0 is supported at best effort." #pragma message "We strongly encourage you to move to 6.0 and above." @@ -103,19 +116,6 @@ inline cudnnPoolingMode_t GetPoolingMode(const PoolingMode& mode) { } #endif // CUDNN_VERSION < 6000 -enum class DataLayout { // Not use - kNHWC, - kNCHW, - kNCDHW, - kNCHW_VECT_C, -}; - -enum class PoolingMode { - kMaximum, - kAverage, - kMaximumDeterministic, -}; - template class CudnnDataType; -- GitLab