Skip to content

Commit

Permalink
fixed errors in PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kobby-kobbs committed Aug 15, 2024
1 parent 2771a40 commit 03ba9e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions onnxscript/rewriter/onnxruntime/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
)

TRANSFORMERS_FUNCTION_REWRITE_RULES: list[type[function_rule.FunctionRewriteRule]] = [
# multihead_attention.GQALlama2RewriteRule,
# multihead_attention.GQALlamaSdpa2RewriteRule,
# multihead_attention.AttnPhi15RewriteRule,
# multihead_attention.MHAStableDiffusionUnetRewriteRule,
multihead_attention.GQALlama2RewriteRule,
multihead_attention.GQALlamaSdpa2RewriteRule,
multihead_attention.AttnPhi15RewriteRule,
multihead_attention.MHAStableDiffusionUnetRewriteRule,
layernorm.LNRewriteRule,
# fastgelu.GeluRewriteRule,
# biassplitgelu.GegluRewriteRule,
# multihead_attention.MHALlama2RewriteRule,
fastgelu.GeluRewriteRule,
biassplitgelu.GegluRewriteRule,
multihead_attention.MHALlama2RewriteRule,
multihead_attention.GQALlama3RewriteRule,
# multihead_attention.AttentionRewriteRule,
multihead_attention.AttentionRewriteRule,
multihead_attention.MLP3RewriteRule,
multihead_attention.GQALlama3RewriteRuleFirstAttention,
# multihead_attention.MLPRewriteRule,
# multihead_attention.GQALlamaRewriteRule,
multihead_attention.MLPRewriteRule,
multihead_attention.GQALlamaRewriteRule,

]
2 changes: 1 addition & 1 deletion testingg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import onnxscript.optimizer
import onnxscript.rewriter
from onnxscript.rewriter import onnxruntime as ort_rewriter
from onnxscript.ir import convenience as ir_convenience


def export_to_onnx(input_model_path: str, output_model_path: str):

Check warning

Code scanning / lintrunner

PYLINT/W0621 Warning test

Redefining name 'input_model_path' from outer scope (line 68) (redefined-outer-name)
See redefined-outer-name. To disable, use # pylint: disable=redefined-outer-name

Check warning

Code scanning / lintrunner

PYLINT/W0621 Warning test

Redefining name 'output_model_path' from outer scope (line 69) (redefined-outer-name)
See redefined-outer-name. To disable, use # pylint: disable=redefined-outer-name
"""
Expand Down

0 comments on commit 03ba9e9

Please sign in to comment.