You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by jx...@apache.org on 2017/09/13 19:07:13 UTC

[incubator-mxnet] branch master updated: Enabling persistent BN in cuDNN 7.0.2 (#7876)

This is an automated email from the ASF dual-hosted git repository.

jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 2580dc0  Enabling persistent BN in cuDNN 7.0.2 (#7876)
2580dc0 is described below

commit 2580dc063cb91fe29d17d55d84f2e39b83676ae8
Author: Przemyslaw Tredak <pt...@gmail.com>
AuthorDate: Wed Sep 13 21:07:09 2017 +0200

    Enabling persistent BN in cuDNN 7.0.2 (#7876)
---
 src/operator/cudnn_batch_norm-inl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/operator/cudnn_batch_norm-inl.h b/src/operator/cudnn_batch_norm-inl.h
index 258bed5..bd3c2d6 100644
--- a/src/operator/cudnn_batch_norm-inl.h
+++ b/src/operator/cudnn_batch_norm-inl.h
@@ -112,7 +112,7 @@ class CuDNNBatchNormOp : public Operator {
 
     Tensor<gpu, 4, DType> y =
       out_data[cudnnbatchnorm::kOut].get_with_shape<gpu, 4, DType>(shape_, s);
-#if CUDNN_VERSION >= 7003
+#if CUDNN_VERSION >= 7002
     auto mode = CUDNN_BATCHNORM_SPATIAL_PERSISTENT;
 #else
     auto mode = CUDNN_BATCHNORM_SPATIAL;
@@ -201,7 +201,7 @@ class CuDNNBatchNormOp : public Operator {
       out_grad[cudnnbatchnorm::kOut].get_with_shape<gpu, 4, DType>(shape_, s);
 
 #if CUDNN_VERSION >= 4007
-#if CUDNN_VERSION >= 7003
+#if CUDNN_VERSION >= 7002
     auto mode = CUDNN_BATCHNORM_SPATIAL_PERSISTENT;
 #else
     auto mode = CUDNN_BATCHNORM_SPATIAL;

-- 
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].