You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/04/26 05:47:18 UTC
[GitHub] zheng-da closed pull request #10691: Fix a CUDNN macro.
zheng-da closed pull request #10691: Fix a CUDNN macro.
URL: https://github.com/apache/incubator-mxnet/pull/10691
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/operator/nn/cudnn/cudnn_algoreg.cc b/src/operator/nn/cudnn/cudnn_algoreg.cc
index 26b3484eb3c..5b2eb94ccac 100644
--- a/src/operator/nn/cudnn/cudnn_algoreg.cc
+++ b/src/operator/nn/cudnn/cudnn_algoreg.cc
@@ -23,6 +23,7 @@
* \brief
* \author Junyuan Xie
*/
+#if MXNET_USE_CUDNN == 1
#include "./cudnn_algoreg-inl.h"
#include <mxnet/base.h>
#include <mxnet/ndarray.h>
@@ -32,7 +33,6 @@
namespace mxnet {
namespace op {
-#if MXNET_USE_CUDNN == 1
template<>
CuDNNAlgoReg<ConvolutionParam> *CuDNNAlgoReg<ConvolutionParam>::Get() {
static CuDNNAlgoReg<ConvolutionParam> inst;
@@ -44,6 +44,6 @@ CuDNNAlgoReg<DeconvolutionParam> *CuDNNAlgoReg<DeconvolutionParam>::Get() {
static CuDNNAlgoReg<DeconvolutionParam> inst;
return &inst;
}
-#endif // CUDNN
} // namespace op
} // namespace mxnet
+#endif // CUDNN
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services