Skip to content

[torchlib] Implement missing operators (set1) #7374

[torchlib] Implement missing operators (set1)

[torchlib] Implement missing operators (set1) #7374

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

1 errors, 1 fail, 1 646 skipped, 7 686 pass in 19m 2s

    24 files  +    24      24 suites  +24   19m 2s ⏱️ + 19m 2s
 9 334 tests + 9 334   7 686 ✅ + 7 686  1 646 💤 +1 646  1 ❌ +1   1 🔥 + 1 
39 459 runs  +39 459  33 832 ✅ +33 832  5 573 💤 +5 573  9 ❌ +9  45 🔥 +45 

Results for commit 87756da. ± Comparison against earlier commit 14f43e4.

Annotations

Check failure on line 0 in /

See this annotation in the file changed.

@github-actions github-actions / Test Results

All 15 runs with error: tests.function_libs.torch_lib.ops_test

artifacts/Test Results (py310-macos-latest)/pytest.xml [took 0s]
artifacts/Test Results (py310-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py310-windows-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-experimental-torchlib-tracing-macos-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-experimental-torchlib-tracing-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-experimental-torchlib-tracing-windows-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-macos-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-ort-nightly-macos-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-ort-nightly-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-windows-latest)/pytest.xml [took 0s]
artifacts/Test Results (py39-macos-latest)/pytest.xml [took 0s]
artifacts/Test Results (py39-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py39-windows-latest)/pytest.xml [took 0s]
Raw output
collection failure
collection failure
collection failure
tests/function_libs/torch_lib/ops_test.py:42: in <module>
    from tests.function_libs.torch_lib import (
tests/function_libs/torch_lib/ops_test_data.py:2441: in <module>
    ops_test_common.duplicate_opinfo_for_prims(OPS_DB, op)
tests/function_libs/torch_lib/ops_test_common.py:251: in duplicate_opinfo_for_prims
    new_opinfo.op = getattr(torch.ops.prims, prims_name)
.nox/test/lib/python3.11/site-packages/torch/_ops.py:822: in __getattr__
    raise AttributeError(
E   AttributeError: '_OpNamespace' 'prims' object has no attribute 'lerp'
tests/function_libs/torch_lib/ops_test.py:42: in <module>
    from tests.function_libs.torch_lib import (
tests/function_libs/torch_lib/ops_test_data.py:2441: in <module>
    ops_test_common.duplicate_opinfo_for_prims(OPS_DB, op)
tests/function_libs/torch_lib/ops_test_common.py:251: in duplicate_opinfo_for_prims
    new_opinfo.op = getattr(torch.ops.prims, prims_name)
.nox/test/lib/python3.11/site-packages/torch/_ops.py:822: in __getattr__
    raise AttributeError(
E   AttributeError: '_OpNamespace' 'prims' object has no attribute 'lerp'
tests/function_libs/torch_lib/ops_test.py:42: in <module>
    from tests.function_libs.torch_lib import (
tests/function_libs/torch_lib/ops_test_data.py:2441: in <module>
    ops_test_common.duplicate_opinfo_for_prims(OPS_DB, op)
tests/function_libs/torch_lib/ops_test_common.py:251: in duplicate_opinfo_for_prims
    new_opinfo.op = getattr(torch.ops.prims, prims_name)
.nox/test/lib/python3.11/site-packages/torch/_ops.py:822: in __getattr__
    raise AttributeError(
E   AttributeError: '_OpNamespace' 'prims' object has no attribute 'lerp'

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 9 runs failed: test_tensor_proto_tensor_bfloat16 (onnxscript.ir.serde_test.TensorProtoTensorTest)

artifacts/Test Results (py311-onnx-weekly-macos-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-onnx-weekly-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-onnx-weekly-windows-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-torch-nightly-macos-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-torch-nightly-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-torch-nightly-windows-latest)/pytest.xml [took 0s]
artifacts/Test Results (py312-torch-nightly-macos-latest)/pytest.xml [took 0s]
artifacts/Test Results (py312-torch-nightly-ubuntu-latest)/pytest.xml [took 0s]
artifacts/Test Results (py312-torch-nightly-windows-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)
C:\hostedtoolcache\windows\Python\3.12.4\x64\Lib\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)