Skip to content

Commit 7558413

Browse files
committed
mypy
1 parent 107c9ab commit 7558413

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOGS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Change Logs
44
0.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*

onnx_diagnostic/torch_models/hghub/model_inputs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
)

onnx_diagnostic/torch_models/test_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {}

0 commit comments

Comments
 (0)