Skip to content

Update python/paddle/base/backward.py #72660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/paddle/base/backward.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, block, ops):
self.block = block
self.ops = ops
self.op_deps = {} # op-> in_ops, out_ops
self.var_op_deps = {} # var as input op, var as output op
self.var_op_deps = {} # var as input ops, var as output ops

def get_input_nodes(self):
input_names = []
Expand Down
7 changes: 3 additions & 4 deletions python/paddle/base/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class CompiledProgram:
program_or_graph (Graph|Program): This argument is the Program or Graph
being executed.
build_strategy(BuildStrategy): This argument is used to compile the
program or graph with the specified options, such as operators' fusion
program or graph with the specified options, such as operator's fusion
in the computational graph and memory optimization during the execution
of the computational graph. For more information about build_strategy,
please refer to :code:`paddle.static.BuildStrategy`. The default is None.
Expand Down Expand Up @@ -276,8 +276,7 @@ def _compile_data_parallel(self, places, use_device, scope=None):
assert (
self._build_strategy.reduce_strategy
== BuildStrategy.ReduceStrategy.AllReduce
), "DGC \
only can be used for AllReduce BuildStrategy."
), "DGC only can be used for AllReduce BuildStrategy."

# DGC doesn't support fuse for now, close fuse.
self._build_strategy.fuse_all_reduce_ops = False
Expand Down Expand Up @@ -586,7 +585,7 @@ def release_patch():

class IpuStrategy:
"""
Help users precisely control the graph building in :code:`paddle.static.IpuCompiledProgram` .
Help users precisely control the graph building in :code:`paddle.static.IpuCompiledProgram`.

Returns:
The IpuStrategy instance.
Expand Down
Loading