From b94ef5373095f1c3431a075807c6d3784265765b Mon Sep 17 00:00:00 2001 From: gouzil <66515297+gouzil@users.noreply.github.com> Date: Tue, 28 Mar 2023 14:38:14 +0800 Subject: [PATCH] [Test Mv] autograd_test (#52142) * [Test Mv] autograd_test * [Move Test] rm py_test_modules --- python/paddle/fluid/tests/unittests/CMakeLists.txt | 1 - test/CMakeLists.txt | 2 +- .../fluid/tests/unittests => test}/autograd/CMakeLists.txt | 0 .../paddle/fluid/tests/unittests => test}/autograd/config.py | 0 .../autograd/test_autograd_functional_dynamic.py | 0 .../autograd/test_autograd_functional_prim.py | 0 .../autograd/test_autograd_functional_static.py | 0 .../tests/unittests => test}/autograd/test_jvp_and_transpose.py | 0 .../fluid/tests/unittests => test}/autograd/test_minimize.py | 0 .../fluid/tests/unittests => test}/autograd/test_orig2prim.py | 0 .../fluid/tests/unittests => test}/autograd/test_prim2orig.py | 0 .../fluid/tests/unittests => test}/autograd/test_primapi.py | 0 .../fluid/tests/unittests => test}/autograd/test_primops.py | 0 .../fluid/tests/unittests => test}/autograd/test_transform.py | 0 {python/paddle/fluid/tests/unittests => test}/autograd/utils.py | 0 15 files changed, 1 insertion(+), 2 deletions(-) rename {python/paddle/fluid/tests/unittests => test}/autograd/CMakeLists.txt (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/config.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_autograd_functional_dynamic.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_autograd_functional_prim.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_autograd_functional_static.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_jvp_and_transpose.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_minimize.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_orig2prim.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_prim2orig.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_primapi.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_primops.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/test_transform.py (100%) rename {python/paddle/fluid/tests/unittests => test}/autograd/utils.py (100%) diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index 3dddbdefbbe..4c38a4545e5 100755 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -823,7 +823,6 @@ endif() add_subdirectory(sequence) add_subdirectory(dygraph_to_static) add_subdirectory(rnn) -add_subdirectory(autograd) add_subdirectory(distribution) add_subdirectory(prim) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 660443ad2ef..8046f70ce6b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -55,7 +55,7 @@ endfunction() if(WITH_TESTING) # add_subdirectory(asp) # add_subdirectory(auto_parallel) - # add_subdirectory(autograd) + add_subdirectory(autograd) add_subdirectory(book) add_subdirectory(collective) # add_subdirectory(composite_ops) diff --git a/python/paddle/fluid/tests/unittests/autograd/CMakeLists.txt b/test/autograd/CMakeLists.txt similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/CMakeLists.txt rename to test/autograd/CMakeLists.txt diff --git a/python/paddle/fluid/tests/unittests/autograd/config.py b/test/autograd/config.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/config.py rename to test/autograd/config.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_dynamic.py b/test/autograd/test_autograd_functional_dynamic.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_dynamic.py rename to test/autograd/test_autograd_functional_dynamic.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_prim.py b/test/autograd/test_autograd_functional_prim.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_prim.py rename to test/autograd/test_autograd_functional_prim.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_static.py b/test/autograd/test_autograd_functional_static.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_autograd_functional_static.py rename to test/autograd/test_autograd_functional_static.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_jvp_and_transpose.py b/test/autograd/test_jvp_and_transpose.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_jvp_and_transpose.py rename to test/autograd/test_jvp_and_transpose.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_minimize.py b/test/autograd/test_minimize.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_minimize.py rename to test/autograd/test_minimize.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_orig2prim.py b/test/autograd/test_orig2prim.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_orig2prim.py rename to test/autograd/test_orig2prim.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_prim2orig.py b/test/autograd/test_prim2orig.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_prim2orig.py rename to test/autograd/test_prim2orig.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_primapi.py b/test/autograd/test_primapi.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_primapi.py rename to test/autograd/test_primapi.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_primops.py b/test/autograd/test_primops.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_primops.py rename to test/autograd/test_primops.py diff --git a/python/paddle/fluid/tests/unittests/autograd/test_transform.py b/test/autograd/test_transform.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/test_transform.py rename to test/autograd/test_transform.py diff --git a/python/paddle/fluid/tests/unittests/autograd/utils.py b/test/autograd/utils.py similarity index 100% rename from python/paddle/fluid/tests/unittests/autograd/utils.py rename to test/autograd/utils.py -- GitLab