From 8f541027a87011cdd0733285b0b0322f06153086 Mon Sep 17 00:00:00 2001 From: Huihuang Zheng Date: Wed, 11 Mar 2020 14:45:37 +0800 Subject: [PATCH] Move DygraphToStatic Unit Tests into Its Folder (#22945) As the title --- .../tests/unittests/{ => dygraph_to_static}/test_ast_util.py | 2 +- .../test_basic.py} | 0 .../test_basic_api_transformation.py} | 0 .../test_loop.py} | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename python/paddle/fluid/tests/unittests/{ => dygraph_to_static}/test_ast_util.py (96%) rename python/paddle/fluid/tests/unittests/{test_dygraph_to_static_basic.py => dygraph_to_static/test_basic.py} (100%) rename python/paddle/fluid/tests/unittests/{test_dygraph_to_static_basic_api_transformation.py => dygraph_to_static/test_basic_api_transformation.py} (100%) rename python/paddle/fluid/tests/unittests/{test_dygraph_to_static_loop.py => dygraph_to_static/test_loop.py} (100%) diff --git a/python/paddle/fluid/tests/unittests/test_ast_util.py b/python/paddle/fluid/tests/unittests/dygraph_to_static/test_ast_util.py similarity index 96% rename from python/paddle/fluid/tests/unittests/test_ast_util.py rename to python/paddle/fluid/tests/unittests/dygraph_to_static/test_ast_util.py index 5c8a77c2779..6689f2e681d 100644 --- a/python/paddle/fluid/tests/unittests/test_ast_util.py +++ b/python/paddle/fluid/tests/unittests/dygraph_to_static/test_ast_util.py @@ -22,7 +22,7 @@ import numpy as np import paddle.fluid as fluid from paddle.fluid.dygraph.dygraph_to_static.utils import ast_to_func -from test_dygraph_to_static_basic import dyfunc_with_if_else, dyfunc_with_if_else2, nested_if_else +from test_basic import dyfunc_with_if_else, dyfunc_with_if_else2, nested_if_else class TestAST2Func(unittest.TestCase): diff --git a/python/paddle/fluid/tests/unittests/test_dygraph_to_static_basic.py b/python/paddle/fluid/tests/unittests/dygraph_to_static/test_basic.py similarity index 100% rename from python/paddle/fluid/tests/unittests/test_dygraph_to_static_basic.py rename to python/paddle/fluid/tests/unittests/dygraph_to_static/test_basic.py diff --git a/python/paddle/fluid/tests/unittests/test_dygraph_to_static_basic_api_transformation.py b/python/paddle/fluid/tests/unittests/dygraph_to_static/test_basic_api_transformation.py similarity index 100% rename from python/paddle/fluid/tests/unittests/test_dygraph_to_static_basic_api_transformation.py rename to python/paddle/fluid/tests/unittests/dygraph_to_static/test_basic_api_transformation.py diff --git a/python/paddle/fluid/tests/unittests/test_dygraph_to_static_loop.py b/python/paddle/fluid/tests/unittests/dygraph_to_static/test_loop.py similarity index 100% rename from python/paddle/fluid/tests/unittests/test_dygraph_to_static_loop.py rename to python/paddle/fluid/tests/unittests/dygraph_to_static/test_loop.py -- GitLab