File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 16
16
from pathlib import Path
17
17
from typing import Callable , Tuple , Union
18
18
19
- from onnxruntime import GraphOptimizationLevel
20
19
from transformers .models .albert import AlbertOnnxConfig
21
20
from transformers .models .auto import AutoTokenizer
22
21
from transformers .models .bart import BartOnnxConfig
69
68
"xlm-roberta" : {"default" : XLMRobertaOnnxConfig .default },
70
69
}
71
70
72
- # ONNX Runtime optimization levels for humans
73
- ONNX_OPTIMIZATION_LEVELS = {
74
- "disabled" : GraphOptimizationLevel .ORT_DISABLE_ALL ,
75
- "default" : GraphOptimizationLevel .ORT_ENABLE_BASIC ,
76
- "extended" : GraphOptimizationLevel .ORT_ENABLE_EXTENDED ,
77
- "all" : GraphOptimizationLevel .ORT_ENABLE_ALL ,
78
- }
79
-
80
71
81
72
def get_model_from_framework_and_features (framework : str , features : str , model : str ):
82
73
"""
You can’t perform that action at this time.
0 commit comments