Skip to content

Commit 19b46c2

Browse files
authored
Fix typos euqal equal (#70348)
1 parent e21615a commit 19b46c2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

python/paddle/distributed/checkpoint/load_state_dict.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ def load_state_dict(
591591
unique_id = get_max_id(path)
592592
else:
593593
assert unique_id >= 0, f'{unique_id} should be >= 0'
594-
logger.info(f"The unique_id:{unique_id} is uesed.")
594+
logger.info(f"The unique_id:{unique_id} is used.")
595595

596596
if use_dist:
597597
check_unique_id(unique_id, process_group)

python/paddle/distributed/fleet/base/distributed_strategy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ def heter_ccl_mode(self) -> bool:
25742574
25752575
>>> # for initialize parallel env, only need to call
25762576
>>> paddle.distributed.init_parallel_env()
2577-
>>> # then the heterogenous context will be created.
2577+
>>> # then the heterogeneous context will be created.
25782578
25792579
"""
25802580
return self.strategy.heter_ccl_mode

python/paddle/nn/layer/rnn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@ def flatten_parameters(self) -> None:
16491649
default_initializer=I.Constant(0.0),
16501650
)
16511651
]
1652-
# dropout state may also can be hided and avoid saving
1652+
# dropout state may also can be hid and avoid saving
16531653
# should dropout state be persistable for static-graph
16541654
if in_pir_mode():
16551655
self._dropout_state = paddle.pir.core.create_parameter(

python/paddle/quantization/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def add_type_config(
215215
216216
Args:
217217
layer_type(type[Layer] | list[type[Layer]]): One or a list of layers' type. It should be subclass of
218-
`paddle.nn.Layer`. Python build-in function `type()` can be used to get the type of a layer.
218+
`paddle.nn.Layer`. Python built-in function `type()` can be used to get the type of a layer.
219219
activation(QuanterFactory | None): Quanter used for activations. Default is None.
220220
weight(QuanterFactory | None): Quanter used for weights. Default is None.
221221

test/cpp/phi/core/test_intrusive_ptr.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ TEST(intrusive_ptr, op_comp) {
101101
PADDLE_ENFORCE_EQ(p == copy,
102102
true,
103103
common::errors::Fatal(
104-
"intrusive_ptr p is not euqal to its copy, something "
104+
"intrusive_ptr p is not equal to its copy, something "
105105
"wrong with copy constructor "));
106106
PADDLE_ENFORCE_EQ(
107107
p != p1,

0 commit comments

Comments
 (0)