-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import onnx tests with new iree-import-onnx on onnx 1.16.1. (#240)
This pulls in iree-org/iree#17476 which now runs shape inference: `onnx.shape_inference.infer_shapes(model, data_prop=True)`. Generated from an already configured venv with: ``` python -m pip install --upgrade --find-links https://iree.dev/pip-release-links.html iree-compiler python -m pip install --upgrade onnx python .\onnx\import_tests.py ```
- Loading branch information
Showing
68 changed files
with
213 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+148 Bytes
iree_tests/onnx/node/generated/test_dequantizelinear_e4m3fn_float16/input_0.npy
Binary file not shown.
Binary file added
BIN
+130 Bytes
iree_tests/onnx/node/generated/test_dequantizelinear_e4m3fn_float16/input_1.npy
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
iree_tests/onnx/node/generated/test_dequantizelinear_e4m3fn_float16/model.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module { | ||
func.func @test_dequantizelinear_e4m3fn_float16(%arg0: !torch.vtensor<[5],f8E4M3FN>, %arg1: !torch.vtensor<[],f16>) -> !torch.vtensor<[5],f16> attributes {torch.onnx_meta.ir_version = 10 : si64, torch.onnx_meta.opset_version = 21 : si64, torch.onnx_meta.producer_name = "backend-test", torch.onnx_meta.producer_version = ""} { | ||
%none = torch.constant.none | ||
%0 = torch.operator "onnx.DequantizeLinear"(%arg0, %arg1) {torch.onnx.axis = 0 : si64} : (!torch.vtensor<[5],f8E4M3FN>, !torch.vtensor<[],f16>) -> !torch.vtensor<[5],f16> | ||
return %0 : !torch.vtensor<[5],f16> | ||
} | ||
} | ||
|
Binary file added
BIN
+138 Bytes
iree_tests/onnx/node/generated/test_dequantizelinear_e4m3fn_float16/output_0.npy
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
iree_tests/onnx/node/generated/test_dequantizelinear_e4m3fn_float16/test_data_flags.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--input=5xf32=@input_0.bin | ||
--input=xf16=@input_1.bin | ||
--expected_output=5xf16=@output_0.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.