You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/model_converters/iree_converter/README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,8 @@ This script converts model from `<source_framework>` to the IREE MLIR format.
27
27
-`-w / --weights` is a path to an `.pth` file with trained weights for PyTorch models.
28
28
-`-tm / --torch_module` is a module with the model architecture for PyTorch models. Default: `torchvision.models`.
29
29
-`-is / --input_shape` is an input shape in the format BxWxHxC, where B is a batch size, W is an input tensor width, H is an input tensor height, C is an input tensor number of channels. Required for PyTorch models.
30
-
-`--onnx_opset_version` is the ONNX opset version for ONNX models. Default: `18`.
31
-
-`-o / --output_mlir` is path to save the MLIR file. Required.
30
+
-`--onnx_opset_version` is an ONNX opset version for ONNX models. Default: `18`.
31
+
-`-o / --output_mlir` is a path to save the MLIR file. Required.
32
32
33
33
### Parameter combinations
34
34
#### For ONNX models:
@@ -44,21 +44,21 @@ Two loading methods are supported (mutually exclusive):
44
44
- Optional: `--weights <path/to/weights.pth>`
45
45
46
46
### Examples of usage
47
-
ONNX model conversion:
47
+
ONNX model conversion ([source of the model efficientnet-b0.onnx](https://github.com/onnx/models/blob/main/Computer_Vision/efficientnet_b0_Opset17_timm/efficientnet_b0_Opset17.onnx)):
PyTorch model from file (`.pt` can be created using [tutorial](https://docs.pytorch.org/docs/main/notes/serialization.html#saving-and-loading-torch-nn-modules)):
0 commit comments