From 99017d9a967d6f22cd6a8a67425bcd4255157f6a Mon Sep 17 00:00:00 2001 From: zqw_1997 <118182234+zhengqiwen1997@users.noreply.github.com> Date: Thu, 29 Jun 2023 11:22:26 +0800 Subject: [PATCH] remove the test of using old version of lr (#54936) --- test/legacy_test/test_imperative_optimizer_v2.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/legacy_test/test_imperative_optimizer_v2.py b/test/legacy_test/test_imperative_optimizer_v2.py index 71f3ac1941f..83b3b56d7e3 100644 --- a/test/legacy_test/test_imperative_optimizer_v2.py +++ b/test/legacy_test/test_imperative_optimizer_v2.py @@ -688,10 +688,6 @@ class TestOptimizerLearningRate(unittest.TestCase): lr = adam.get_lr() np.testing.assert_allclose(lr, 0.5, rtol=1e-06, atol=0.0) - with self.assertRaises(TypeError): - scheduler_var = paddle.fluid.dygraph.StepDecay(0.5, step_size=3) - adam.set_lr_scheduler(scheduler_var) - class TestImperativeMomentumOptimizer(TestImperativeOptimizerBase): def get_optimizer_dygraph(self, parameter_list): -- GitLab