From 8ac3d078f33cfaf701ee8f75bfb0479ff6f0c980 Mon Sep 17 00:00:00 2001 From: Roc <30228238+sljlp@users.noreply.github.com> Date: Tue, 20 Sep 2022 21:16:22 +0800 Subject: [PATCH] fix path to import test_auto_checkpoint (#45821) --- .../tests/unittests/collective/fleet/test_auto_checkpoint1.py | 2 +- .../tests/unittests/collective/fleet/test_auto_checkpoint2.py | 2 +- .../tests/unittests/collective/fleet/test_auto_checkpoint3.py | 2 +- .../collective/fleet/test_auto_checkpoint_dist_basic.py | 2 +- .../unittests/collective/fleet/test_auto_checkpoint_multiple.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint1.py b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint1.py index c9172e74f28..1f0cec309c5 100644 --- a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint1.py +++ b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint1.py @@ -30,7 +30,7 @@ import numpy as np from paddle.io import Dataset, BatchSampler, DataLoader from paddle.fluid.tests.unittests.auto_checkpoint_utils import AutoCheckpointBase, get_logger -from paddle.fluid.tests.unittests.test_auto_checkpoint import AutoCheckPointACLBase +from test_auto_checkpoint import AutoCheckPointACLBase paddle.enable_static() logger = get_logger() diff --git a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint2.py b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint2.py index 22b3c15053a..846b31d3fa8 100644 --- a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint2.py +++ b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint2.py @@ -30,7 +30,7 @@ import numpy as np from paddle.io import Dataset, BatchSampler, DataLoader from paddle.fluid.tests.unittests.auto_checkpoint_utils import AutoCheckpointBase, get_logger -from paddle.fluid.tests.unittests.test_auto_checkpoint import AutoCheckPointACLBase +from test_auto_checkpoint import AutoCheckPointACLBase paddle.enable_static() logger = get_logger() diff --git a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint3.py b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint3.py index 8d847fe9704..d6f11df20b2 100644 --- a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint3.py +++ b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint3.py @@ -30,7 +30,7 @@ import numpy as np from paddle.io import Dataset, BatchSampler, DataLoader from paddle.fluid.tests.unittests.auto_checkpoint_utils import AutoCheckpointBase, get_logger -from paddle.fluid.tests.unittests.test_auto_checkpoint import AutoCheckPointACLBase +from test_auto_checkpoint import AutoCheckPointACLBase paddle.enable_static() logger = get_logger() diff --git a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint_dist_basic.py b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint_dist_basic.py index c0aa13aa03f..4949f4728ea 100644 --- a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint_dist_basic.py +++ b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint_dist_basic.py @@ -30,7 +30,7 @@ import numpy as np from paddle.io import Dataset, BatchSampler, DataLoader from paddle.fluid.tests.unittests.auto_checkpoint_utils import AutoCheckpointBase, get_logger -from paddle.fluid.tests.unittests.test_auto_checkpoint import AutoCheckPointACLBase +from test_auto_checkpoint import AutoCheckPointACLBase paddle.enable_static() logger = get_logger() diff --git a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint_multiple.py b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint_multiple.py index da7f2af169d..65de718a487 100644 --- a/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint_multiple.py +++ b/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint_multiple.py @@ -30,7 +30,7 @@ import numpy as np from paddle.io import Dataset, BatchSampler, DataLoader from paddle.fluid.tests.unittests.auto_checkpoint_utils import AutoCheckpointBase, get_logger -from paddle.fluid.tests.unittests.test_auto_checkpoint import AutoCheckPointACLBase +from test_auto_checkpoint import AutoCheckPointACLBase paddle.enable_static() logger = get_logger() -- GitLab