File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff 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 { \
Original file line number Diff line number Diff 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;
2126using autotest::TensorCheckEqual;
2227using autotest::TensorCheckErr;
2328
Original file line number Diff line number Diff 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;
2324using autotest::TensorCheckEqual;
2425using autotest::TensorCheckErr;
2526
You can’t perform that action at this time.
0 commit comments