Skip to content

Commit

Permalink
[PIR] fix onednn double reg (#60720)
Browse files Browse the repository at this point in the history
* fix onednn double reg
  • Loading branch information
wanghuancoder authored Jan 11, 2024
1 parent bcefbaf commit a1ef22c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions paddle/fluid/pir/dialect/kernel/ir/kernel_dialect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ CustomKernelDialect::CustomKernelDialect(pir::IrContext *context)
}

void CustomKernelDialect::initialize() {
RegisterTypes<paddle::dialect::AllocatedDenseTensorType>();
RegisterOps<dialect::CustomKernelOp>();
RegisterAttributes<paddle::dialect::KernelAttribute>();
}

void CustomKernelDialect::PrintType(pir::Type type, std::ostream &os) const {
Expand Down Expand Up @@ -176,13 +174,9 @@ OneDNNKernelDialect::OneDNNKernelDialect(pir::IrContext *context)
}

void OneDNNKernelDialect::initialize() {
RegisterTypes<paddle::dialect::AllocatedDenseTensorType,
paddle::dialect::AllocatedSelectedRowsType,
paddle::dialect::AllocatedDenseTensorArrayType>();
RegisterOps<dialect::OneDNNPhiKernelOp,
dialect::OneDNNMixedPhiKernelOp,
dialect::OneDNNLegacyKernelOp>();
RegisterAttributes<paddle::dialect::KernelAttribute>();
}

void OneDNNKernelDialect::PrintType(pir::Type type, std::ostream &os) const {
Expand Down

0 comments on commit a1ef22c

Please sign in to comment.