Skip to content

Commit 0b2730c

Browse files
co63ocGITD245
authored andcommitted
Update python/paddle/base/backward.py (PaddlePaddle#72660)
1 parent 4ce769e commit 0b2730c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

python/paddle/base/backward.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, block, ops):
5151
self.block = block
5252
self.ops = ops
5353
self.op_deps = {} # op-> in_ops, out_ops
54-
self.var_op_deps = {} # var as input op, var as output op
54+
self.var_op_deps = {} # var as input ops, var as output ops
5555

5656
def get_input_nodes(self):
5757
input_names = []

python/paddle/base/compiler.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class CompiledProgram:
135135
program_or_graph (Graph|Program): This argument is the Program or Graph
136136
being executed.
137137
build_strategy(BuildStrategy): This argument is used to compile the
138-
program or graph with the specified options, such as operators' fusion
138+
program or graph with the specified options, such as operator's fusion
139139
in the computational graph and memory optimization during the execution
140140
of the computational graph. For more information about build_strategy,
141141
please refer to :code:`paddle.static.BuildStrategy`. The default is None.
@@ -276,8 +276,7 @@ def _compile_data_parallel(self, places, use_device, scope=None):
276276
assert (
277277
self._build_strategy.reduce_strategy
278278
== BuildStrategy.ReduceStrategy.AllReduce
279-
), "DGC \
280-
only can be used for AllReduce BuildStrategy."
279+
), "DGC only can be used for AllReduce BuildStrategy."
281280

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

587586
class IpuStrategy:
588587
"""
589-
Help users precisely control the graph building in :code:`paddle.static.IpuCompiledProgram` .
588+
Help users precisely control the graph building in :code:`paddle.static.IpuCompiledProgram`.
590589
591590
Returns:
592591
The IpuStrategy instance.

0 commit comments

Comments
 (0)