From f807807ed11c662db3af853ec9b7209a601157a9 Mon Sep 17 00:00:00 2001 From: hedaoyuan Date: Mon, 4 Sep 2017 10:26:03 +0800 Subject: [PATCH] Fix the namespace of the im2col functor. --- paddle/operators/math/im2col.cc | 2 ++ paddle/operators/math/im2col.cu | 2 ++ paddle/operators/math/im2col.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/paddle/operators/math/im2col.cc b/paddle/operators/math/im2col.cc index bcc18af03..a5fcf6da8 100644 --- a/paddle/operators/math/im2col.cc +++ b/paddle/operators/math/im2col.cc @@ -15,6 +15,7 @@ limitations under the License. */ #include "paddle/operators/math/im2col.h" namespace paddle { +namespace operators { namespace math { /* @@ -243,4 +244,5 @@ template class Col2ImFunctor; template class Col2ImFunctor; } // namespace math +} // namespace operators } // namespace paddle diff --git a/paddle/operators/math/im2col.cu b/paddle/operators/math/im2col.cu index 2caa7c5ec..23d385461 100644 --- a/paddle/operators/math/im2col.cu +++ b/paddle/operators/math/im2col.cu @@ -16,6 +16,7 @@ limitations under the License. */ #include "paddle/platform/cuda_helper.h" namespace paddle { +namespace operators { namespace math { template @@ -353,4 +354,5 @@ template class Col2ImFunctor; template class Col2ImFunctor; } // namespace math +} // namespace operators } // namespace paddle diff --git a/paddle/operators/math/im2col.h b/paddle/operators/math/im2col.h index f6b428e28..1065cd3d8 100644 --- a/paddle/operators/math/im2col.h +++ b/paddle/operators/math/im2col.h @@ -18,6 +18,7 @@ limitations under the License. */ #include "paddle/platform/device_context.h" namespace paddle { +namespace operators { namespace math { /* The storage format of the coldata in the Im2ColFunctor and Col2ImFunctor. */ @@ -85,4 +86,5 @@ class Col2ImFunctor { }; } // namespace math +} // namespace operators } // namespace paddle -- GitLab