forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump SHARK-TestSuite commit to include npy->bin output comparison. (i…
…ree-org#17281) This fixes iree-org#16674 by switching from comparing against .npy files to comparing against .bin files thanks to nod-ai/SHARK-TestSuite#212. For example with https://github.com/nod-ai/SHARK-TestSuite/tree/main/iree_tests/onnx/node/generated/test_add_uint8: * model.mlir: ```mlir module { func.func @test_add_uint8(%arg0: !torch.vtensor<[3,4,5],ui8>, %arg1: !torch.vtensor<[3,4,5],ui8>) -> !torch.vtensor<[3,4,5],ui8> attributes {torch.onnx_meta.ir_version = 7 : si64, torch.onnx_meta.opset_version = 17 : si64, torch.onnx_meta.producer_name = "backend-test", torch.onnx_meta.producer_version = ""} { %none = torch.constant.none %0 = torch.operator "onnx.Add"(%arg0, %arg1) : (!torch.vtensor<[3,4,5],ui8>, !torch.vtensor<[3,4,5],ui8>) -> !torch.vtensor<[3,4,5],ui8> return %0 : !torch.vtensor<[3,4,5],ui8> } } ``` * `test_data_flags.txt` before: ``` --input=@input_0.npy --input=@input_1.npy --expected_output=@output_0.npy ``` with these errors: ``` [FAILED] result[0]: metadata is 3x4x5xi8; expected that the view matches 3x4x5xui8; expected that the view is equal to contents of a view of 3x4x5xui8 expected: 3x4x5xui8=[[18 24 22 22 20][14 38 44 14 27][30 14 20 12 20][36 25 31 6 8]][[28 30 19 7 18][26 33 23 34 19][29 39 14 32 44][26 25 18 28 24]][[24 36 16 28 25][16 23 22 20 39][27 20 34 19 26][16 17 8 16 11]] actual: 3x4x5xi8=[[18 24 22 22 20][14 38 44 14 27][30 14 20 12 20][36 25 31 6 8]][[28 30 19 7 18][26 33 23 34 19][29 39 14 32 44][26 25 18 28 24]][[24 36 16 28 25][16 23 22 20 39][27 20 34 19 26][16 17 8 16 11]] ``` * `test_data_flags.txt` after: ``` --input=3x4x5xui8=@input_0.bin --input=3x4x5xui8=@input_1.bin --expected_output=3x4x5xi8=@output_0.bin ``` (that still seems a bit mismatched? it does pass the test though)
- Loading branch information
Showing
9 changed files
with
18 additions
and
425 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
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.