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][R-32] Fix typos(runing,Runing) #70916

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
2 changes: 0 additions & 2 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ Registe = 'Registe'
registe = 'registe'
REGIST = 'REGIST'
Regiter = 'Regiter'
Runing = 'Runing'
runing = 'runing'
setted = 'setted'
shoule = 'shoule'
shoud = 'shoud'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ class CustomKernelInstruction : public InstructionBase {
std::unordered_map<std::string, int> input_name2id_map_;
std::unordered_map<std::string, int> vec_input_name2id_map_;

// use for runing infershape
// use for running infershape
std::vector<std::vector<int64_t>> input_shapes_;
std::vector<std::vector<std::vector<int64_t>>> vec_input_shapes_;
std::vector<paddle::any> custom_attrs_;

// use for runing inferdtype
// use for running inferdtype
std::vector<DataType> input_dtypes_;
std::vector<std::vector<DataType>> vec_input_dtypes_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,10 @@ void TensorRTEngineInstruction::RunTrt() {
}
}

VLOG(4) << "Start Runing trt engine...";
VLOG(4) << "Start running trt engine...";
// Execute the engine.
trt_engine_->Execute(runtime_batch, &buffers, stream);
VLOG(4) << "End Runing trt engine and deal with output";
VLOG(4) << "End running trt engine and deal with output";
for (const auto &index_name_pair : output_names_) {
size_t i = index_name_pair.first;
auto type = outputs_dtype_[i];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ class {{op_name | to_composite_grad_opmaker_name}} : public prim::CompositeGradO
{%- endmacro %}

{% macro call_composite_backward_api(composite_func_info) %}
VLOG(6) << "Runing {{composite_func_info["func_name"]}} composite func";
VLOG(6) << "Running {{composite_func_info["func_name"]}} composite func";
prim::{{composite_func_info["func_name"]}}<prim::DescTensor>({{composite_func_info["func_args"]}});
{%- endmacro %}

Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/operators/slice_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ class SliceCompositeGradOpMaker : public prim::CompositeGradOpMakerBase {
auto ends = this->Attr<std::vector<int>>("ends");
auto infer_flags = this->Attr<std::vector<int>>("infer_flags");
auto decrease_axis = this->Attr<std::vector<int>>("decrease_axis");
VLOG(6) << "Runing slice_grad composite func";
VLOG(6) << "Running slice_grad composite func";
std::vector<int64_t> new_axes =
std::vector<int64_t>(axes.begin(), axes.end());
std::vector<int64_t> new_infer_flags =
Expand Down
2 changes: 1 addition & 1 deletion paddle/phi/core/generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ std::shared_ptr<std::mt19937_64> GetCPURandomEngine(uint64_t seed) {
} else {
// NOTE(zhiqiu): creating an cpu_engine instance everytime instead of using
// OpDefaultCPUEngine(), this is the legacy behavior of random operators.
// The benefit is that when runing PE with fixed-seed in multiple threads,
// The benefit is that when running PE with fixed-seed in multiple threads,
// each thread has their own cpu_engine, and doesn't affect each other.
//
// And we need to measure the determinacy of Generator in PE.
Expand Down
2 changes: 1 addition & 1 deletion test/ir/inference/test_fc_fuse_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def sample_program_config(self, draw):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
mul_op = OpConfig(
"mul",
inputs={"X": ["mul_x"], "Y": ["mul_y"]},
Expand Down
2 changes: 1 addition & 1 deletion test/ir/inference/test_xpu_add_activation_fuse_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def generate_input():
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
elementwise_op = OpConfig(
type='elementwise_add',
inputs={'X': ['eltwise_X'], 'Y': ['eltwise_Y']},
Expand Down
2 changes: 1 addition & 1 deletion test/ir/inference/test_xpu_add_layernorm_fuse_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def sample_program_config(self, draw):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
elementwise_op = OpConfig(
type='elementwise_add',
inputs={'X': ['eltwise_X'], 'Y': ['eltwise_Y']},
Expand Down
2 changes: 1 addition & 1 deletion test/ir/inference/test_xpu_conv2d_fuse_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def generate_data(shape):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
conv2d_op = OpConfig(
"conv2d",
inputs={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def generate_data(shape):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
conv2d_op = OpConfig(
"conv2d",
inputs={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def sample_program_config(self, draw):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running

# q: matmul + add + reshape + transpose + scale
q_mul_op = OpConfig(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def sample_program_config(self, draw):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
reshape2_1_op = OpConfig(
"reshape2",
inputs={"X": ["input_q"]},
Expand Down
2 changes: 1 addition & 1 deletion test/ir/inference/test_xpu_fc_xpu_fuse_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def sample_program_config(self, draw):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
matmul_v2_op = OpConfig(
"matmul_v2",
inputs={"X": ["matmul_v2_x"], "Y": ["matmul_v2_y"]},
Expand Down
4 changes: 2 additions & 2 deletions test/ir/inference/test_xpu_qk_qkv_attention_xpu_fuse_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def sample_program_config(self, draw):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
reshape_1_op = OpConfig(
"reshape2",
inputs={"X": ["input"]},
Expand Down Expand Up @@ -180,7 +180,7 @@ def sample_program_config(self, draw):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
reshape_1_op = OpConfig(
"reshape2",
inputs={"X": ["input"]},
Expand Down
2 changes: 1 addition & 1 deletion test/ir/inference/test_xpu_roformer_relative_pos_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def generate_data(shape):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
split_op = OpConfig(
"split",
inputs={"X": ["x"]},
Expand Down
2 changes: 1 addition & 1 deletion test/ir/inference/test_xpu_sine_pos_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def generate_data(shape):
# Here we will compose a program
# Still has some risks that the program is invalid or cause bug while running
# Use function `is_program_valid` to filter the invalid programs before running
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while runing
# Use function `add_skip_pass_case` to ignore the programs even if they cause bug while running
mul_op = OpConfig(
"elementwise_mul",
inputs={"X": ["x"], "Y": ["y"]},
Expand Down
Loading