File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
onnxscript/rewriter/ort_fusions Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ def test_whisper_tiny(self):
55
55
"/workspace/testing/whisper-opt/whisper-tiny-4.48/whisper-tiny_encoder_optimized.onnx" ,
56
56
)
57
57
58
-
59
58
# Generate decoder model
60
59
whisper_decoder_model = onnx .load (
61
60
"/workspace/testing/whisper-opt/whisper-tiny-4.48/whisper-tiny_decoder.onnx"
@@ -85,7 +84,6 @@ def test_whisper_tiny(self):
85
84
new_decoder_onnx_model ,
86
85
"/workspace/testing/whisper-opt/whisper-tiny-4.48/whisper-tiny_decoder_optimized.onnx" ,
87
86
)
88
-
89
87
90
88
"""
91
89
test_with_ort = packaging.version.Version("1.20") <= ORT_VERSION
Original file line number Diff line number Diff line change 5
5
from typing import Sequence , Union
6
6
7
7
import onnxscript .ir as ir
8
- from onnxscript .rewriter import _fusion_utils , _ir_utils , pattern
8
+ from onnxscript .rewriter import _fusion_utils , pattern
9
9
10
10
"""
11
11
The MultiHeadAttention pattern: generate an instance
@@ -285,7 +285,7 @@ def rewrite(
285
285
):
286
286
num_heads = 64
287
287
# TODO: (fix) Error caused by incorrect SDPA fusion for pre-scaling case
288
- #num_heads = _ir_utils.get_dim(query_BSHDh, 2)
288
+ # num_heads = _ir_utils.get_dim(query_BSHDh, 2)
289
289
if not isinstance (num_heads , int ):
290
290
return None
291
291
You can’t perform that action at this time.
0 commit comments