Skip to content

Commit

Permalink
fix cinn ops.yaml generate bug (PaddlePaddle#58121)
Browse files Browse the repository at this point in the history
  • Loading branch information
chen2016013 authored and hitywt committed Oct 24, 2023
1 parent a67738a commit 10b57dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions paddle/cinn/hlir/dialect/operator/ir/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if(NOT CINN_ONLY)
COMMAND ${CMAKE_COMMAND} -E make_directory ${parsed_op_dir}
COMMAND ${PYTHON_EXECUTABLE} ${cinn_op_gen_parsed_yaml_file} --op_yaml_path
${cinn_op_yaml_file} --output_path ${cinn_op_parsed_yaml_file}
DEPENDS ${cinn_op_gen_parsed_yaml_file} ${cinn_op_yaml_file}
VERBATIM)

add_custom_command(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ LegacyKernelInstruction::~LegacyKernelInstruction() {
}

void LegacyKernelInstruction::Run() {
VLOG(6) << "Run op " << legacy_op_name_ << " infer meta.";
if (infer_meta_interface_) {
infer_meta_interface_->infer_meta_(&(infer_meta_context_));
}
VLOG(6) << "Run op " << legacy_op_name_ << " infer meta.";
(*(phi_kernel_))((kernel_context_));
VLOG(6) << "Run op " << legacy_op_name_ << " kernel.";
(*(phi_kernel_))((kernel_context_));
}
} // namespace framework
} // namespace paddle

0 comments on commit 10b57dc

Please sign in to comment.