We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66c245b commit 67bf3c6Copy full SHA for 67bf3c6
tests/post_training/pipelines/image_classification_timm.py
@@ -45,8 +45,8 @@ def prepare_model(self) -> None:
45
onnx_path = self.fp32_model_dir / "model_fp32.onnx"
46
additional_kwargs = {}
47
if self.batch_size > 1:
48
- batch = torch.export.Dim("batch")
49
- additional_kwargs["dynamic_shapes"] = ({0: batch},)
+ additional_kwargs["input_names"] = ["image"]
+ additional_kwargs["dynamic_axes"] = {"image": {0: "batch"}}
50
51
torch.onnx.export(
52
timm_model,
tests/post_training/requirements.txt
@@ -22,4 +22,4 @@ accelerate==1.9.0
22
transformers==4.53.0
23
whowhatbench @ git+https://github.com/openvinotoolkit/openvino.genai@2025.3.0.0#subdirectory=tools/who_what_benchmark
24
datasets==3.6.0
25
-onnxscript
+onnxscript==0.5.4
0 commit comments