Skip to content

[torchlib] Fix registrations 3/n #7443

[torchlib] Fix registrations 3/n

[torchlib] Fix registrations 3/n #7443

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

1 fail, 610 skipped, 1 578 pass in 2m 15s

    3 files   - 2      3 suites   - 2   2m 15s ⏱️ -18s
2 189 tests ±0  1 578 ✅ ±0    610 💤 ±0  1 ❌ ±0 
4 378 runs  ±0  3 156 ✅ ±0  1 220 💤 ±0  2 ❌ ±0 

Results for commit 4130673. ± Comparison against earlier commit b7a8105.

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

All 2 runs failed: test_tensor_proto_tensor_bfloat16 (onnxscript.ir.serde_test.TensorProtoTensorTest)

artifacts/Test Results (py311-torch-nightly-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py312-torch-nightly-ubuntu-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)
/opt/hostedtoolcache/Python/3.11.9/x64/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)