From 898b273a096fcc4ffab3ce6ce06671922c12cb7a Mon Sep 17 00:00:00 2001 From: liyulingyue <852433440@qq.com> Date: Fri, 31 Jan 2025 09:09:05 +0800 Subject: [PATCH] fix typo subsituted --- _typos.toml | 6 ------ paddle/cinn/hlir/framework/pir/trivial_op_impl.cc | 4 ++-- paddle/cinn/hlir/framework/pir/trivial_op_util.cc | 6 +++--- paddle/cinn/hlir/framework/pir/trivial_op_util.h | 10 +++++----- paddle/fluid/framework/pass_desc.proto | 2 +- paddle/phi/core/framework/pass_desc.proto | 2 +- 6 files changed, 12 insertions(+), 18 deletions(-) diff --git a/_typos.toml b/_typos.toml index 2f1b7ee4fca511..109c92793912a0 100644 --- a/_typos.toml +++ b/_typos.toml @@ -105,12 +105,6 @@ stragety = 'stragety' strem = 'strem' structed = 'structed' sturcture = 'sturcture' -subsituted = 'subsituted' -subsitute = 'subsitute' -substitude = 'substitude' -substitue = 'substitue' -Subsitute = 'Subsitute' -Substitude = 'Substitude' substract = 'substract' Substract = 'Substract' successed = 'successed' diff --git a/paddle/cinn/hlir/framework/pir/trivial_op_impl.cc b/paddle/cinn/hlir/framework/pir/trivial_op_impl.cc index 94b93e2f56f4b0..e7f8e27c0f9895 100644 --- a/paddle/cinn/hlir/framework/pir/trivial_op_impl.cc +++ b/paddle/cinn/hlir/framework/pir/trivial_op_impl.cc @@ -92,7 +92,7 @@ ir::Expr GetComputeBody(const FusibleOp& op) { const auto& compute_body = (ExprSetFinderUtils::ChildStores * ExprSetFinderUtils::Store2Value) .GetSingle(compute_realize); - return ExprTransformerUtils::SubstitudeByScheduleBlockRealize( + return ExprTransformerUtils::SubstituteByScheduleBlockRealize( compute_realize)(compute_body); } ir::Expr operator()(const TrivialOp& op) { @@ -102,7 +102,7 @@ ir::Expr GetComputeBody(const FusibleOp& op) { const auto& compute_body = (ExprSetFinderUtils::ChildStores * ExprSetFinderUtils::Store2Value) .GetSingle(compute_realize); - return ExprTransformerUtils::SubstitudeByScheduleBlockRealize( + return ExprTransformerUtils::SubstituteByScheduleBlockRealize( compute_realize)(compute_body); } }; diff --git a/paddle/cinn/hlir/framework/pir/trivial_op_util.cc b/paddle/cinn/hlir/framework/pir/trivial_op_util.cc index 314ef309bbdc54..bad15a70104ec9 100644 --- a/paddle/cinn/hlir/framework/pir/trivial_op_util.cc +++ b/paddle/cinn/hlir/framework/pir/trivial_op_util.cc @@ -176,7 +176,7 @@ ir::Expr CopiedReplaceExpr(const Expr& source, return copied_source; } -void SubstitudeTargetExprWithDestExpr(const ir::Expr& source, +void SubstituteTargetExprWithDestExpr(const ir::Expr& source, const ir::Expr& dest, ir::Expr* body) { VLOG(4) << "SubstitideExpr Start"; @@ -193,7 +193,7 @@ void SubstitudeTargetExprWithDestExpr(const ir::Expr& source, VLOG(5) << "SubstitideExpr Result: " << *body; } -ir::Expr SubstitudeIndexVector(const Expr& source, +ir::Expr SubstituteIndexVector(const Expr& source, const std::vector& load_vars, const std::vector& indices) { return CopiedReplaceExpr(source, load_vars, indices); @@ -623,7 +623,7 @@ ExprTransformer WrapReduceOperation(const ir::Reduce::ReduceType& reduce_type, return ExprTransformer(f); } -ExprTransformer SubstitudeByScheduleBlockRealize(const ir::Expr& realize) { +ExprTransformer SubstituteByScheduleBlockRealize(const ir::Expr& realize) { const auto& f = [=](const ir::Expr& e) -> ir::Expr { const auto& iter_values = realize.As()->iter_values; diff --git a/paddle/cinn/hlir/framework/pir/trivial_op_util.h b/paddle/cinn/hlir/framework/pir/trivial_op_util.h index 2bf30b427aff60..3a35b466150ca2 100644 --- a/paddle/cinn/hlir/framework/pir/trivial_op_util.h +++ b/paddle/cinn/hlir/framework/pir/trivial_op_util.h @@ -91,11 +91,11 @@ bool CheckIterEq(const std::vector& up_iter, ir::Expr CopiedReplaceExpr(const Expr& source, const std::vector& replaced, const std::vector& candidates); -void SubstitudeTargetExprWithDestExpr(const ir::Expr& source, +void SubstituteTargetExprWithDestExpr(const ir::Expr& source, const ir::Expr& dest, ir::Expr* body); -ir::Expr SubstitudeIndexVector(const Expr& source, +ir::Expr SubstituteIndexVector(const Expr& source, const std::vector& load_vars, const std::vector& indices); @@ -104,9 +104,9 @@ void ReplaceDownstreamLoadExprWithUpstreamComputeBody( const FusionOp& upstream, const ir::Expr& downstream_load_expr, ir::Expr* downstream_body) { - ComposeUtils::SubstitudeTargetExprWithDestExpr( + ComposeUtils::SubstituteTargetExprWithDestExpr( downstream_load_expr, - ComposeUtils::SubstitudeIndexVector( + ComposeUtils::SubstituteIndexVector( GetComputeBody(upstream), GetOutputIters(upstream), downstream_load_expr.As()->indices), @@ -249,7 +249,7 @@ ExprTransformer UnsqueezeForTransformer( const ExprSetFinderUtils::ExprSetFinder& followed_finder, const ir::Var& to_append_var); -ExprTransformer SubstitudeByScheduleBlockRealize(const ir::Expr& realize); +ExprTransformer SubstituteByScheduleBlockRealize(const ir::Expr& realize); ExprTransformer WrapScheduleRealizer(const std::vector& block_vars, const std::string& tensor_name); diff --git a/paddle/fluid/framework/pass_desc.proto b/paddle/fluid/framework/pass_desc.proto index 88ec7f8e2be724..4515724cf58156 100644 --- a/paddle/fluid/framework/pass_desc.proto +++ b/paddle/fluid/framework/pass_desc.proto @@ -14,7 +14,7 @@ syntax = "proto2"; import "paddle/fluid/framework/framework.proto"; package paddle.framework.proto; -// Describes one subsitute subgraph. +// Describes one substitute subgraph. message PassDesc { enum RoleType { kVariable = 0; diff --git a/paddle/phi/core/framework/pass_desc.proto b/paddle/phi/core/framework/pass_desc.proto index 66dd6c02f1d909..ea9c51c83f8ed5 100644 --- a/paddle/phi/core/framework/pass_desc.proto +++ b/paddle/phi/core/framework/pass_desc.proto @@ -17,7 +17,7 @@ syntax = "proto2"; import "paddle/phi/core/framework/framework.proto"; package paddle.framework.proto; -// Describes one subsitute subgraph. +// Describes one substitute subgraph. message PassDesc { enum RoleType { kVariable = 0;