Skip to content

[torchlib] Fix and improve quantization support #7574

[torchlib] Fix and improve quantization support

[torchlib] Fix and improve quantization support #7574

GitHub Actions / Test Results failed Jul 19, 2024 in 0s

1 fail, 929 skipped, 2 488 pass in 52s

    2 files   -     22      2 suites   - 22   52s ⏱️ - 16m 7s
3 418 tests  -  4 340  2 488 ✅  -  2 937    929 💤  - 1 373  1 ❌  -  7 
4 374 runs   - 36 723  3 330 ✅  - 26 826  1 043 💤  - 8 109  1 ❌  - 15 

Results for commit 26b335a. ± Comparison against earlier commit 58cdcd6.

Annotations

Check warning on line 0 in onnxscript.ir.serde_test.TensorProtoTensorTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

1 out of 2 runs failed: test_tensor_proto_tensor_bfloat16 (onnxscript.ir.serde_test.TensorProtoTensorTest)

artifacts/Test Results (py311-onnx-weekly-macos-latest)/pytest.xml [took 0s]
Raw output
AssertionError: 
Arrays are not equal

Mismatched elements: 8 / 9 (88.9%)
Max absolute difference: 49219.
Max relative difference: 97793.
 x: array([[49216, 49024, 48896, 32768,     0, 16128, 16256, 16936, 16384]],
      dtype=(numpy.uint16, [('bfloat16', '<u2')]))
 y: array([[-3, -1, -0.5, -0, 0, 0.5, 1, 42, 2]], dtype=bfloat16)
onnxscript/ir/serde_test.py:106: in test_tensor_proto_tensor_bfloat16
    np.testing.assert_array_equal(array_from_raw_data, expected_array)
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py:81: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Arrays are not equal
E   
E   Mismatched elements: 8 / 9 (88.9%)
E   Max absolute difference: 49219.
E   Max relative difference: 97793.
E    x: array([[49216, 49024, 48896, 32768,     0, 16128, 16256, 16936, 16384]],
E         dtype=(numpy.uint16, [('bfloat16', '<u2')]))
E    y: array([[-3, -1, -0.5, -0, 0, 0.5, 1, 42, 2]], dtype=bfloat16)