Skip to content

Commit b132fde

Browse files
committed
follow some comments with issue 973
1 parent 9eae4f5 commit b132fde

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

paddle/function/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
file(GLOB h_files . *_op.h)
2-
file(GLOB cpp_files . *_op.cpp)
1+
file(GLOB h_files . *Op.h)
2+
file(GLOB cpp_files . *Op.cpp)
33

44
list(APPEND h_files Function.h)
55
list(APPEND cpp_files Function.cpp)
66

77
if(WITH_GPU)
8-
file(GLOB cu_files . *_op_gpu.cu)
8+
file(GLOB cu_files . *OpGpu.cu)
99
cuda_compile(cu_objs ${cu_files})
1010
endif()
1111

@@ -15,9 +15,9 @@ add_library(paddle_test_main STATIC TestMain.cpp)
1515

1616
if(WITH_GPU)
1717
# TODO:
18-
# file(GLOB test_files . *_op_test.cpp)
18+
# file(GLOB test_files . *OpTest.cpp)
1919
# add_executable(${test_bin} EXCLUDE_FROM_ALL ${test_files})
20-
add_simple_unittest(cross_map_normal_op_test)
20+
add_simple_unittest(CrossMapNormalOpTest)
2121
endif()
2222

2323
add_style_check_target(paddle_function ${h_files})

paddle/function/cross_map_normal_op.cpp renamed to paddle/function/CrossMapNormalOp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

15-
#include "cross_map_normal_op.h"
15+
#include "CrossMapNormalOp.h"
1616
#include "paddle/math/Vector.h"
1717

1818
namespace paddle {

paddle/function/cross_map_normal_op_gpu.cu renamed to paddle/function/CrossMapNormalOpGpu.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

1515
#include "hl_base.h"
16-
#include "cross_map_normal_op.h"
16+
#include "CrossMapNormalOp.h"
1717

1818
namespace paddle {
1919

paddle/function/cross_map_normal_op_test.cpp renamed to paddle/function/CrossMapNormalOpTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ limitations under the License. */
1515
#include <gtest/gtest.h>
1616
#include "FunctionTest.h"
1717

18+
namespace paddle {
19+
1820
TEST(CrossMapNormal, real) {
1921
for (size_t numSamples : {5, 32}) {
2022
for (size_t channels : {1, 5, 32}) {
@@ -69,3 +71,5 @@ TEST(CrossMapNormalGrad, real) {
6971
}
7072
}
7173
}
74+
75+
} // namespace paddle

paddle/function/FunctionTest.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,3 @@ class FunctionCompare {
9595
};
9696

9797
} // namespace paddle
98-
99-
using paddle::FunctionCompare;
100-
using paddle::FuncConfig;
101-
using paddle::Dims;
102-
using paddle::Tensor;

0 commit comments

Comments
 (0)