Skip to content
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

[CodeStyle][Typos][S-[36-41]] Fix typo (sqaure, sequeze...) #71002

Merged
merged 4 commits into from
Feb 7, 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
7 changes: 0 additions & 7 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ registe = 'registe'
REGIST = 'REGIST'
Regiter = 'Regiter'
setted = 'setted'
sqaure = 'sqaure'
sequeze = 'sequeze'
starup = 'starup'
statment = 'statment'
staticly = 'staticly'
staticaly = 'staticaly'
Stati = 'Stati'
storeage = 'storeage'
sotring = 'sotring'
stragety = 'stragety'
Expand Down
2 changes: 1 addition & 1 deletion paddle/cinn/optim/replace_cross_block_reduction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ struct CrossBlockReductionReplacer : public BaseMutator {
update_stmt.As<ir::Block>()->stmts.size(),
1UL,
::common::errors::InvalidArgument(
"There should be exactly one statment inside schedule_block."));
"There should be exactly one statement inside schedule_block."));
update_stmt = update_stmt.As<ir::Block>()->stmts[0];
}
PADDLE_ENFORCE_NOT_NULL(
Expand Down
2 changes: 1 addition & 1 deletion paddle/cinn/poly/schedule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void SchedulerBase::FinishStageAdd() {
auto *a_node = depend_node->safe_as<ScheduleGraphNode>();
auto *b_node = node->safe_as<ScheduleGraphNode>();
auto _a_edge_b_edge_ = a_node->LinkTo<ScheduleGraphEdge>(
b_node); // Add link from extra depend statment to current node.
b_node); // Add link from extra depend statement to current node.
auto &a_edge = std::get<0>(_a_edge_b_edge_);
auto &b_edge = std::get<1>(_a_edge_b_edge_);
a_edge->as<ScheduleGraphEdge>()->level = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class DqMmaPipelined : public DqMmaBase<Shape_,
/// Complex transform on B operand
static ComplexTransform const kTransformB = Operator::kTransformB;

// staticaly assert kStages for DqMmaPipelined is two (Double-buffered
// statically assert kStages for DqMmaPipelined is two (Double-buffered
// pipeline)
static_assert((Base::kStages == 2),
"DqMmaPipelined requires kStages set to value 2");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ class CustomMmaPipelined : public CustomMmaBase<Shape_, Policy_, 2> {
/// Complex transform on B operand
static ComplexTransform const kTransformB = Operator::kTransformB;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ class MmaPipelinedFromSharedMemory
/// Complex transform on B operand
static ComplexTransform const kTransformB = Operator::kTransformB;

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

Expand Down
4 changes: 2 additions & 2 deletions python/paddle/distributed/auto_parallel/static/pir_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def complete_op_role(main_program, op_role_scope: list):
global_op_idx += 1


def pipeline_pass(dense_main_program, dense_starup_program, pipeline_strategy):
def pipeline_pass(dense_main_program, dense_startup_program, pipeline_strategy):
"""
Pipeline schedule pass for auto parallel. Enables the pipeline parallel scheduling
strategies like FThenB, 1F1B, VPP, etc.
Expand Down Expand Up @@ -807,7 +807,7 @@ def pipeline_pass(dense_main_program, dense_starup_program, pipeline_strategy):
pass_context = PassContext()
pipeline_pass.apply(
dense_main_program,
dense_starup_program,
dense_startup_program,
pass_context,
)
plan = pass_context.get_attr("plan")
Expand Down
2 changes: 1 addition & 1 deletion test/dygraph_to_static/test_tensor_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ def dyfunc_with_static_convert_var_shape(x):
return res


class TestFindStatiConvertVarShapeSuffixVar(Dy2StTestBase):
class TestFindStaticConvertVarShapeSuffixVar(Dy2StTestBase):
@test_ast_only
def test(self):
x_spec = paddle.static.InputSpec(shape=[None, 10])
Expand Down