Skip to content

Commit d82adcb

Browse files
modify rule names
1 parent 3b74c02 commit d82adcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxscript/rewriter/ort_fusions/skip_normalization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def rewrite(self, op, input, skip, gamma, bias, epsilon, stash_type):
9393
"SkipRmsNormBias", has_bias=True, bias_pre_add=False
9494
)
9595
_skip_rms_pre_add_bias_rule = SkipRmsNormFusion.rule(
96-
"SkipRmsNormBias", has_bias=True, bias_pre_add=True
96+
"SkipRmsNormPreBias", has_bias=True, bias_pre_add=True
9797
)
9898
_skip_rms_rule = SkipRmsNormFusion.rule("SkipRmsNorm", has_bias=False)
9999

@@ -184,7 +184,7 @@ def rewrite(self, op, input, skip, gamma, beta, bias, epsilon, stash_type):
184184
"SkipLayerNormBias", has_bias=True, bias_pre_add=False
185185
)
186186
_skip_layer_pre_add_bias_rule = SkipLayerNormFusion.rule(
187-
"SkipLayerNormBias", has_bias=True, bias_pre_add=True
187+
"SkipLayerNormPreBias", has_bias=True, bias_pre_add=True
188188
)
189189
_skip_layer_rule = SkipLayerNormFusion.rule("SkipLayerNorm", has_bias=False)
190190

0 commit comments

Comments
 (0)