Skip to content

Commit d04c206

Browse files
committed
remove the 'using namespace paddle;' in the test files
1 parent 84a0574 commit d04c206

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

paddle/math/tests/PerfUtils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ limitations under the License. */
2222
#else
2323

2424
#include "paddle/utils/Stat.h"
25+
using namespace paddle; // NOLINT
2526

2627
#define EXPRESSION_PERFORMANCE(expression) \
2728
do { \

paddle/math/tests/test_Tensor.cu

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ limitations under the License. */
1616
#include "paddle/math/Matrix.h"
1717
#include "TensorCheck.h"
1818

19-
using namespace paddle; // NOLINT
20-
using namespace std; // NOLINT
19+
using paddle::Matrix;
20+
using paddle::CpuMatrix;
21+
using paddle::GpuMatrix;
22+
using paddle::CpuVector;
23+
using paddle::GpuVector;
24+
using paddle::CpuIVector;
25+
using paddle::GpuIVector;
2126
using autotest::TensorCheckEqual;
2227
using autotest::TensorCheckErr;
2328

paddle/math/tests/test_lazyAssign.cu

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ limitations under the License. */
1818
#include "TensorCheck.h"
1919
#include "PerfUtils.h"
2020

21-
using namespace paddle; // NOLINT
22-
using namespace std; // NOLINT
21+
using paddle::BaseMatrix;
22+
using paddle::CpuMatrix;
23+
using paddle::GpuMatrix;
2324
using autotest::TensorCheckEqual;
2425
using autotest::TensorCheckErr;
2526

0 commit comments

Comments
 (0)