Skip to content

Commit 7c1afd6

Browse files
authored
[CodeStyle][Typos][S-[36-41]] Fix typo (sqaure, sequeze...) (#71002)
1 parent 780902b commit 7c1afd6

File tree

8 files changed

+10
-15
lines changed

8 files changed

+10
-15
lines changed

_typos.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ outpout = 'outpout'
6060
ouptut = 'ouptut'
6161
Ouput = 'Ouput'
6262
setted = 'setted'
63-
sqaure = 'sqaure'
64-
sequeze = 'sequeze'
65-
starup = 'starup'
66-
statment = 'statment'
67-
staticly = 'staticly'
68-
staticaly = 'staticaly'
69-
Stati = 'Stati'
7063
storeage = 'storeage'
7164
sotring = 'sotring'
7265
stragety = 'stragety'

paddle/cinn/optim/replace_cross_block_reduction.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ struct CrossBlockReductionReplacer : public BaseMutator {
339339
update_stmt.As<ir::Block>()->stmts.size(),
340340
1UL,
341341
::common::errors::InvalidArgument(
342-
"There should be exactly one statment inside schedule_block."));
342+
"There should be exactly one statement inside schedule_block."));
343343
update_stmt = update_stmt.As<ir::Block>()->stmts[0];
344344
}
345345
PADDLE_ENFORCE_NOT_NULL(

paddle/cinn/poly/schedule.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void SchedulerBase::FinishStageAdd() {
250250
auto *a_node = depend_node->safe_as<ScheduleGraphNode>();
251251
auto *b_node = node->safe_as<ScheduleGraphNode>();
252252
auto _a_edge_b_edge_ = a_node->LinkTo<ScheduleGraphEdge>(
253-
b_node); // Add link from extra depend statment to current node.
253+
b_node); // Add link from extra depend statement to current node.
254254
auto &a_edge = std::get<0>(_a_edge_b_edge_);
255255
auto &b_edge = std::get<1>(_a_edge_b_edge_);
256256
a_edge->as<ScheduleGraphEdge>()->level = -1;

paddle/phi/kernels/fusion/cutlass/cutlass_extensions/gemm/threadblock/dq_mma_pipelined.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class DqMmaPipelined : public DqMmaBase<Shape_,
159159
/// Complex transform on B operand
160160
static ComplexTransform const kTransformB = Operator::kTransformB;
161161

162-
// staticaly assert kStages for DqMmaPipelined is two (Double-buffered
162+
// statically assert kStages for DqMmaPipelined is two (Double-buffered
163163
// pipeline)
164164
static_assert((Base::kStages == 2),
165165
"DqMmaPipelined requires kStages set to value 2");

paddle/phi/kernels/fusion/cutlass/memory_efficient_attention/gemm/custom_mma_pipelined.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ class CustomMmaPipelined : public CustomMmaBase<Shape_, Policy_, 2> {
157157
/// Complex transform on B operand
158158
static ComplexTransform const kTransformB = Operator::kTransformB;
159159

160-
// staticaly assert kStages for MmaPipelined is two (Double-buffered pipeline)
160+
// statically assert kStages for MmaPipelined is two (Double-buffered
161+
// pipeline)
161162
static_assert((Base::kStages == 2),
162163
"MmaPipelined requires kStages set to value 2");
163164

paddle/phi/kernels/fusion/cutlass/memory_efficient_attention/gemm/mma_from_smem.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ class MmaPipelinedFromSharedMemory
426426
/// Complex transform on B operand
427427
static ComplexTransform const kTransformB = Operator::kTransformB;
428428

429-
// staticaly assert kStages for MmaPipelined is two (Double-buffered pipeline)
429+
// statically assert kStages for MmaPipelined is two (Double-buffered
430+
// pipeline)
430431
static_assert((Base::kStages == 2),
431432
"MmaPipelined requires kStages set to value 2");
432433

python/paddle/distributed/auto_parallel/static/pir_pass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def complete_op_role(main_program, op_role_scope: list):
772772
global_op_idx += 1
773773

774774

775-
def pipeline_pass(dense_main_program, dense_starup_program, pipeline_strategy):
775+
def pipeline_pass(dense_main_program, dense_startup_program, pipeline_strategy):
776776
"""
777777
Pipeline schedule pass for auto parallel. Enables the pipeline parallel scheduling
778778
strategies like FThenB, 1F1B, VPP, etc.
@@ -807,7 +807,7 @@ def pipeline_pass(dense_main_program, dense_starup_program, pipeline_strategy):
807807
pass_context = PassContext()
808808
pipeline_pass.apply(
809809
dense_main_program,
810-
dense_starup_program,
810+
dense_startup_program,
811811
pass_context,
812812
)
813813
plan = pass_context.get_attr("plan")

test/dygraph_to_static/test_tensor_shape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ def dyfunc_with_static_convert_var_shape(x):
803803
return res
804804

805805

806-
class TestFindStatiConvertVarShapeSuffixVar(Dy2StTestBase):
806+
class TestFindStaticConvertVarShapeSuffixVar(Dy2StTestBase):
807807
@test_ast_only
808808
def test(self):
809809
x_spec = paddle.static.InputSpec(shape=[None, 10])

0 commit comments

Comments
 (0)