Skip to content

Commit 9534f0e

Browse files
committed
fix
1 parent e5c6b74 commit 9534f0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

onnx_diagnostic/helpers/torch_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def to_any(value: Any, to_value: Union[torch.dtype, torch.device, str]) -> Any:
724724
if value.__class__.__name__ in {"DynamicCache", "HybridCache"}:
725725
make = dict(DynamicCache=make_dynamic_cache, HybridCache=make_hybrid_cache)
726726
cc = CacheKeyValue(value)
727-
return make[value.__class__.__name__](
727+
return make[value.__class__.__name__]( # type: ignore[operator]
728728
list(
729729
zip(
730730
[t.to(to_value) if t is not None else t for t in cc.key_cache],

onnx_diagnostic/torch_models/hghub/model_inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def get_untrained_model_with_inputs(
239239
) from e
240240

241241
# input kwargs
242-
kwargs, fct = random_input_kwargs(config, task)
242+
kwargs, fct = random_input_kwargs(config, task) # type: ignore[arg-type]
243243
if verbose:
244244
print(f"[get_untrained_model_with_inputs] use fct={fct}")
245245
if os.environ.get("PRINT_CONFIG") in (1, "1"):

0 commit comments

Comments
 (0)