Skip to content

Commit bf8a6dc

Browse files
committed
rename layer_test to test_layer
1 parent 2591167 commit bf8a6dc

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_test(NAME v2_layer_test
1+
add_test(NAME test_v2_layer
22
COMMAND ${PROJ_ROOT}/paddle/.set_python_path.sh -d ${PROJ_ROOT}/python/
3-
${PYTHON_EXECUTABLE} ${PROJ_ROOT}/python/paddle/v2/tests/layer_test.py
3+
${PYTHON_EXECUTABLE} ${PROJ_ROOT}/python/paddle/v2/tests/test_layer.py
44
WORKING_DIRECTORY ${PROJ_ROOT}/python/paddle)

python/paddle/v2/tests/layer_test.py renamed to python/paddle/v2/tests/test_layer.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ def test_cost_layer(self):
5151
cost10 = layer.sum_cost(input=inference)
5252
cost11 = layer.huber_cost(input=score, label=label)
5353

54-
print layer.parse_network(cost1, cost2)
55-
print layer.parse_network(cost3, cost4)
56-
print layer.parse_network(cost5, cost6)
57-
print layer.parse_network(cost7, cost8, cost9, cost10, cost11)
54+
print dir(layer)
55+
layer.parse_network(cost1, cost2)
56+
print dir(layer)
57+
#print layer.parse_network(cost3, cost4)
58+
#print layer.parse_network(cost5, cost6)
59+
#print layer.parse_network(cost7, cost8, cost9, cost10, cost11)
5860

5961

6062
if __name__ == '__main__':

0 commit comments

Comments
 (0)