From bf8a6dc4fff40e869236c0634df57bfe16c12d96 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Fri, 24 Feb 2017 17:14:38 +0800 Subject: [PATCH] rename layer_test to test_layer --- python/paddle/v2/tests/CMakeLists.txt | 4 ++-- .../paddle/v2/tests/{layer_test.py => test_layer.py} | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) rename python/paddle/v2/tests/{layer_test.py => test_layer.py} (90%) diff --git a/python/paddle/v2/tests/CMakeLists.txt b/python/paddle/v2/tests/CMakeLists.txt index 83b7180ebaf..402ad2e664c 100644 --- a/python/paddle/v2/tests/CMakeLists.txt +++ b/python/paddle/v2/tests/CMakeLists.txt @@ -1,4 +1,4 @@ -add_test(NAME v2_layer_test +add_test(NAME test_v2_layer COMMAND ${PROJ_ROOT}/paddle/.set_python_path.sh -d ${PROJ_ROOT}/python/ - ${PYTHON_EXECUTABLE} ${PROJ_ROOT}/python/paddle/v2/tests/layer_test.py + ${PYTHON_EXECUTABLE} ${PROJ_ROOT}/python/paddle/v2/tests/test_layer.py WORKING_DIRECTORY ${PROJ_ROOT}/python/paddle) diff --git a/python/paddle/v2/tests/layer_test.py b/python/paddle/v2/tests/test_layer.py similarity index 90% rename from python/paddle/v2/tests/layer_test.py rename to python/paddle/v2/tests/test_layer.py index 3b2a13ce05b..b600e8cf765 100644 --- a/python/paddle/v2/tests/layer_test.py +++ b/python/paddle/v2/tests/test_layer.py @@ -51,10 +51,12 @@ class CostLayerTest(unittest.TestCase): cost10 = layer.sum_cost(input=inference) cost11 = layer.huber_cost(input=score, label=label) - print layer.parse_network(cost1, cost2) - print layer.parse_network(cost3, cost4) - print layer.parse_network(cost5, cost6) - print layer.parse_network(cost7, cost8, cost9, cost10, cost11) + print dir(layer) + layer.parse_network(cost1, cost2) + print dir(layer) + #print layer.parse_network(cost3, cost4) + #print layer.parse_network(cost5, cost6) + #print layer.parse_network(cost7, cost8, cost9, cost10, cost11) if __name__ == '__main__': -- GitLab