diff --git a/paddle/fluid/pir/transforms/onednn/cpu_bfloat16_placement_pass.cc b/paddle/fluid/pir/transforms/onednn/cpu_bfloat16_placement_pass.cc index 6a8c045cfa052c..620d77aad5ec2d 100644 --- a/paddle/fluid/pir/transforms/onednn/cpu_bfloat16_placement_pass.cc +++ b/paddle/fluid/pir/transforms/onednn/cpu_bfloat16_placement_pass.cc @@ -51,7 +51,7 @@ class OneDNNBf16PlacementPattern : public pir::RewritePattern { public: explicit OneDNNBf16PlacementPattern(pir::IrContext* context) : pir::RewritePattern(MatchAnyOpTypeTag(), - 1 /*benefit*/, + 5 /*benefit*/, context, {} /*generated_names*/) {}