From 2a8cfb557e82325509517a7248edb0b3ae8ebb91 Mon Sep 17 00:00:00 2001 From: gouzil <66515297+gouzil@users.noreply.github.com> Date: Wed, 29 Mar 2023 10:27:51 +0800 Subject: [PATCH] [Test Mv] asp_test (#52141) * [Test Mv] asp_test * [Test Mv] cmake add py_test_modules * [Move Test] rm py_test_modules --- python/paddle/fluid/tests/unittests/CMakeLists.txt | 2 -- test/CMakeLists.txt | 2 +- .../paddle/fluid/tests/unittests => test}/asp/CMakeLists.txt | 0 {python/paddle/fluid/tests/unittests => test}/asp/__init__.py | 0 .../fluid/tests/unittests => test}/asp/asp_pruning_base.py | 0 .../tests/unittests => test}/asp/test_asp_customized_pruning.py | 0 .../tests/unittests => test}/asp/test_asp_optimize_dynamic.py | 0 .../tests/unittests => test}/asp/test_asp_optimize_static.py | 0 .../tests/unittests => test}/asp/test_asp_pruning_dynamic.py | 0 .../tests/unittests => test}/asp/test_asp_pruning_static.py | 0 .../fluid/tests/unittests => test}/asp/test_asp_save_load.py | 0 .../paddle/fluid/tests/unittests => test}/asp/test_asp_utils.py | 0 .../tests/unittests => test}/asp/test_fleet_with_asp_dynamic.py | 0 .../unittests => test}/asp/test_fleet_with_asp_sharding.py | 0 .../tests/unittests => test}/asp/test_fleet_with_asp_static.py | 0 15 files changed, 1 insertion(+), 3 deletions(-) rename {python/paddle/fluid/tests/unittests => test}/asp/CMakeLists.txt (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/__init__.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/asp_pruning_base.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_asp_customized_pruning.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_asp_optimize_dynamic.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_asp_optimize_static.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_asp_pruning_dynamic.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_asp_pruning_static.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_asp_save_load.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_asp_utils.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_fleet_with_asp_dynamic.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_fleet_with_asp_sharding.py (100%) rename {python/paddle/fluid/tests/unittests => test}/asp/test_fleet_with_asp_static.py (100%) diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index 4c38a4545e5..5ac3ed26424 100755 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -864,8 +864,6 @@ if(WITH_IPU) add_subdirectory(ipu) endif() -add_subdirectory(asp) - add_subdirectory(ir) add_subdirectory(standalone_executor) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8046f70ce6b..0dfb1dc62df 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -53,7 +53,7 @@ function(bash_test_modules TARGET_NAME) endfunction() if(WITH_TESTING) - # add_subdirectory(asp) + add_subdirectory(asp) # add_subdirectory(auto_parallel) add_subdirectory(autograd) add_subdirectory(book) diff --git a/python/paddle/fluid/tests/unittests/asp/CMakeLists.txt b/test/asp/CMakeLists.txt similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/CMakeLists.txt rename to test/asp/CMakeLists.txt diff --git a/python/paddle/fluid/tests/unittests/asp/__init__.py b/test/asp/__init__.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/__init__.py rename to test/asp/__init__.py diff --git a/python/paddle/fluid/tests/unittests/asp/asp_pruning_base.py b/test/asp/asp_pruning_base.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/asp_pruning_base.py rename to test/asp/asp_pruning_base.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_asp_customized_pruning.py b/test/asp/test_asp_customized_pruning.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_asp_customized_pruning.py rename to test/asp/test_asp_customized_pruning.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_asp_optimize_dynamic.py b/test/asp/test_asp_optimize_dynamic.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_asp_optimize_dynamic.py rename to test/asp/test_asp_optimize_dynamic.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_asp_optimize_static.py b/test/asp/test_asp_optimize_static.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_asp_optimize_static.py rename to test/asp/test_asp_optimize_static.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_asp_pruning_dynamic.py b/test/asp/test_asp_pruning_dynamic.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_asp_pruning_dynamic.py rename to test/asp/test_asp_pruning_dynamic.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_asp_pruning_static.py b/test/asp/test_asp_pruning_static.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_asp_pruning_static.py rename to test/asp/test_asp_pruning_static.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_asp_save_load.py b/test/asp/test_asp_save_load.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_asp_save_load.py rename to test/asp/test_asp_save_load.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_asp_utils.py b/test/asp/test_asp_utils.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_asp_utils.py rename to test/asp/test_asp_utils.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_dynamic.py b/test/asp/test_fleet_with_asp_dynamic.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_dynamic.py rename to test/asp/test_fleet_with_asp_dynamic.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_sharding.py b/test/asp/test_fleet_with_asp_sharding.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_sharding.py rename to test/asp/test_fleet_with_asp_sharding.py diff --git a/python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_static.py b/test/asp/test_fleet_with_asp_static.py similarity index 100% rename from python/paddle/fluid/tests/unittests/asp/test_fleet_with_asp_static.py rename to test/asp/test_fleet_with_asp_static.py -- GitLab