Skip to content

Commit

Permalink
remove the test of using old version of lr (#54936)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengqiwen1997 authored Jun 29, 2023
1 parent 1dcc355 commit 99017d9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/legacy_test/test_imperative_optimizer_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,6 @@ def test_set_lr_scheduler(self):
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):
Expand Down

0 comments on commit 99017d9

Please sign in to comment.