Skip to content

Commit

Permalink
Revert "fix _message of protobuf (#49673)"
Browse files Browse the repository at this point in the history
This reverts commit 7fe44fe.
  • Loading branch information
risemeup1 authored Mar 2, 2023
1 parent 5e1185d commit 2827b59
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions python/paddle/distributed/fleet/base/distributed_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
from paddle.fluid.framework import _global_flags
from paddle.fluid.wrapped_decorator import wrap_decorator

protobuf_version = google.protobuf.__version__
if protobuf_version >= "4.21.0":
import google._upb._message as _message
else:
import google.protobuf.pyext._message as _message

__all__ = []

non_auto_func_called = True
Expand Down Expand Up @@ -2503,7 +2497,7 @@ def __repr__(self):
for ff in config_fields:
if isinstance(
getattr(my_configs, ff.name),
_message.RepeatedScalarContainer,
google.protobuf.pyext._message.RepeatedScalarContainer,
):
values = getattr(my_configs, ff.name)
for i, v in enumerate(values):
Expand Down

0 comments on commit 2827b59

Please sign in to comment.