torch-mlir/python/torch_mlir/extras
zjgarvey c0eb6d89c0
[ONNX] add some args to the onnx importer to assist shape_inference (#3445)
Adds the following arguments:
- "--clear-domain": enabling this flag (default False) will delete the
domain attribute from each node in the onnx model before importing.
Shape inference does not seem to work for onnx ops in custom domains. In
the rare case when these ops have a corresponding counterpart in base
onnx, enabling this flag might allow shape inference to work properly.
- "--opset-version": allows setting the opset version manually. This
will cause the importer to attempt to update the opset_version of the
onnx model before importing. Newer opset versions sometimes have more
robust shape inference patterns.
2024-06-12 10:55:14 -05:00
..
fx_decomp_util.py [FxImporter] Fix failed e2e case (#3365) 2024-05-22 00:20:54 +08:00
fx_importer.py Test custom op import with symbolic shapes (#3431) 2024-06-09 00:32:49 -07:00
onnx_importer.py [ONNX] add some args to the onnx importer to assist shape_inference (#3445) 2024-06-12 10:55:14 -05:00