File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -139,17 +139,22 @@ class YieldEvaluator:
139
139
140
140
:param onnx_model: model to run
141
141
:param recursive: dig into subgraph and functions as well
142
+ :param cls: evaluator to use, default value is :class:`ExtendedReferenceEvaluator`
142
143
"""
143
144
144
145
def __init__ (
145
146
self ,
146
147
onnx_model : ModelProto ,
147
148
recursive : bool = False ,
148
- cls = ExtendedReferenceEvaluator ,
149
+ cls : Optional [ type [ ExtendedReferenceEvaluator ]] = None ,
149
150
):
150
151
assert not recursive , "recursive=True is not yet implemented"
151
152
self .onnx_model = onnx_model
152
- self .evaluator = cls (onnx_model ) if cls is not None else None
153
+ self .evaluator = (
154
+ cls (onnx_model )
155
+ if cls is not None
156
+ else ExtendedReferenceEvaluator (onnx_model )
157
+ )
153
158
154
159
def enumerate_results (
155
160
self ,
You can’t perform that action at this time.
0 commit comments