File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
onnx_diagnostic/torch_models Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Change Logs
440.4.4
55+++++
66
7+ * :pr: `82 `: exposes ``register_flattening_functions ``, add option ``--subfolder ``
78* :pr: `81 `: fixes missing ``intermediate_size `` in configuration
89* :pr: `79 `: implements task ``object-detection ``
910* :pr: `78 `: uses *onnx-weekly * instead of *onnx * to avoid conflicts with *onnxscript *
Original file line number Diff line number Diff line change @@ -93,6 +93,9 @@ def get_untrained_model_with_inputs(
9393
9494 # model kwagrs
9595 if dynamic_rope is not None :
96+ assert (
97+ type (config ) is not dict
98+ ), f"Unable to set dynamic_rope if the configuration is a dictionary\n { config } "
9699 config .rope_scaling = (
97100 {"rope_type" : "dynamic" , "factor" : 10.0 } if dynamic_rope else None
98101 )
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ def validate_model(
305305 print (f"[validate_model] model_options={ model_options !r} " )
306306 print (f"[validate_model] get dummy inputs with input_options={ input_options } ..." )
307307 summary ["model_id" ] = model_id
308- summary ["model_subfolder" ] = subfolder
308+ summary ["model_subfolder" ] = subfolder or ""
309309
310310 iop = input_options or {}
311311 mop = model_options or {}
You can’t perform that action at this time.
0 commit comments