diff --git a/paddle/math/tests/PerfUtils.h b/paddle/math/tests/PerfUtils.h index 51e46bb62d9fb69681c566c813ccc9aa42d6d9eb..c32f4c634a691d5d747157d1d6d50406fdb99c3b 100644 --- a/paddle/math/tests/PerfUtils.h +++ b/paddle/math/tests/PerfUtils.h @@ -22,6 +22,7 @@ limitations under the License. */ #else #include "paddle/utils/Stat.h" +using namespace paddle; // NOLINT #define EXPRESSION_PERFORMANCE(expression) \ do { \ diff --git a/paddle/math/tests/test_Tensor.cu b/paddle/math/tests/test_Tensor.cu index 343e0631f60238780ce5bda21b108cfcb7e2a56e..8fa402055a6fa5963101b9e7b5c9d266161c9f78 100644 --- a/paddle/math/tests/test_Tensor.cu +++ b/paddle/math/tests/test_Tensor.cu @@ -16,8 +16,13 @@ limitations under the License. */ #include "paddle/math/Matrix.h" #include "TensorCheck.h" -using namespace paddle; // NOLINT -using namespace std; // NOLINT +using paddle::Matrix; +using paddle::CpuMatrix; +using paddle::GpuMatrix; +using paddle::CpuVector; +using paddle::GpuVector; +using paddle::CpuIVector; +using paddle::GpuIVector; using autotest::TensorCheckEqual; using autotest::TensorCheckErr; diff --git a/paddle/math/tests/test_lazyAssign.cu b/paddle/math/tests/test_lazyAssign.cu index de76976620b67c061f714fda9719b3d4418ec868..52dfdacffe3b915db07eb04bad7b8d45c7ccf44e 100644 --- a/paddle/math/tests/test_lazyAssign.cu +++ b/paddle/math/tests/test_lazyAssign.cu @@ -18,8 +18,9 @@ limitations under the License. */ #include "TensorCheck.h" #include "PerfUtils.h" -using namespace paddle; // NOLINT -using namespace std; // NOLINT +using paddle::BaseMatrix; +using paddle::CpuMatrix; +using paddle::GpuMatrix; using autotest::TensorCheckEqual; using autotest::TensorCheckErr;