nod-ai / SHARK-TestSuite

Temporary home of a test suite we are evaluating
Apache License 2.0
5 stars 35 forks source link

Fix int32 unpack buffer size #373

Closed AmosLewis closed 1 month ago

AmosLewis commented 1 month ago

The format character "l" corresponds to a 4-byte integer on some systems, but it can be 8 bytes on others, depending on the platform. To ensure consistency, use "i" for a 4-byte integer or "q" for an 8-byte integer explicitly.

python ./run.py --mode=cl-onnx-iree -v -t mygpt4_trunc_Reshape_0 --torchtolinalg
Stages to be run: ['setup', 'import_model', 'preprocessing', 'compilation', 'construct_inputs', 'native_inference', 'compiled_inference', 'postprocessing']
Test list: ['mygpt4_trunc_Reshape_0']
running test mygpt4_trunc_Reshape_0...
{'Shape': 1, 'Cast': 2, 'Slice': 1, 'Concat': 1, 'Reshape': 1}
        PASSED                               

Test Summary:
        PASSES: 1
        TOTAL: 1
results stored in /proj/gdba/shark/chi/src/SHARK-TestSuite/alt_e2eshark/test-run