未验证 提交 99017d9a 编写于 作者: Z zqw_1997 提交者: GitHub

remove the test of using old version of lr (#54936)

上级 1dcc3551
...@@ -688,10 +688,6 @@ class TestOptimizerLearningRate(unittest.TestCase): ...@@ -688,10 +688,6 @@ class TestOptimizerLearningRate(unittest.TestCase):
lr = adam.get_lr() lr = adam.get_lr()
np.testing.assert_allclose(lr, 0.5, rtol=1e-06, atol=0.0) 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): class TestImperativeMomentumOptimizer(TestImperativeOptimizerBase):
def get_optimizer_dygraph(self, parameter_list): def get_optimizer_dygraph(self, parameter_list):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册