Skip to content

Commit

Permalink
remove dygraph check
Browse files Browse the repository at this point in the history
  • Loading branch information
FeixLiu committed Nov 30, 2023
1 parent 7ab6fb9 commit 8e68443
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/paddle/distributed/auto_parallel/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,6 @@ def replicate_layer_params_and_buffers(

class _ShardOptimizer:
def __init__(self, optimizer, shard_fn=None):
assert (
paddle.in_dynamic_mode()
), "`paddle.distributed.ShardOptimizer` only supports dynamic mode for now."
assert (
optimizer is not None
), "The argument `optimizer` cannot be empty."
Expand Down

0 comments on commit 8e68443

Please sign in to comment.