From 37f06c418ea9983b80c4af2e8f72f2b357c5c092 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Fri, 18 Oct 2024 21:41:42 +0800 Subject: [PATCH] set type ignore as a workaround Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- monai/networks/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/networks/utils.py b/monai/networks/utils.py index d0150b4e5b..ffd605a933 100644 --- a/monai/networks/utils.py +++ b/monai/networks/utils.py @@ -694,7 +694,7 @@ def convert_to_onnx( else: f = filename - torch.onnx.export( + torch.onnx.export( # type: ignore[arg-type] mode_to_export, onnx_inputs, f=f,