未验证 提交 3395008f 编写于 作者: D Dong Daxiang 提交者: GitHub

remove async configuration from distributed_strategy.py (#25425)

test=develop
上级 01cf8e89
......@@ -374,17 +374,6 @@ class DistributedStrategy(object):
else:
print("WARNING: sync should have value of bool type")
@property
def async(self):
return self.strategy.async
@async.setter
def async(self, flag):
if isinstance(flag, bool):
self.strategy.async = flag
else:
print("WARNING: async should have value of bool type")
@property
def async_k_step(self):
return self.strategy.async_k_step
......
......@@ -247,15 +247,6 @@ class TestStrategyConfig(unittest.TestCase):
strategy.sync = "True"
self.assertEqual(strategy.sync, False)
def test_async(self):
strategy = paddle.fleet.DistributedStrategy()
strategy.async = True
self.assertEqual(strategy.async, True)
strategy.async = False
self.assertEqual(strategy.async, False)
strategy.async = "True"
self.assertEqual(strategy.async, False)
def test_async_k_step(self):
strategy = paddle.fleet.DistributedStrategy()
strategy.async_k_step = 10000
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册