[typing] Make the runtime_typing.checked
always typed
#7585
4 fail, 3 313 skipped, 10 614 pass in 1h 54m 16s
Annotations
Check warning on line 0 in onnxscript.ir.serde_test.TensorProtoTensorTest
github-actions / Test Results
9 out of 11 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)
/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)
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 2 runs failed: test_export2python_produces_correct_onnx_script_model_0982_test_reversesequence_time (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py310-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_reversesequence_time' (e=No module named 'tests.onnx_backend_test_code.test_reversesequence_time') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reversesequence_time.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reversesequence_time.py', current folder: D:\a\onnxscript\onnxscript
---- CONTENT --
import numpy
from onnx import TensorProto
from onnx.helper import make_tensor
from onnxscript import script, external_tensor
from onnxscript.values import Opset
from onnxscript.onnx_types import FLOAT, INT64
from onnxscript.onnx_opset import opset10
@script()
def bck_test_reversesequence_time(x: FLOAT[4,4], sequence_lens: INT64[4]) -> (FLOAT[4,4]):
y = opset10.ReverseSequence(x, sequence_lens, batch_axis=1, time_axis=0)
return y
onnxscript\backend\onnx_export_test.py:133: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\importlib\__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.onnx_backend_test_code.test_reversesequence_time'
The above exception was the direct cause of the following exception:
.nox\test\lib\site-packages\parameterized\parameterized.py:620: in standalone_func
return func(*(a + p.args), **p.kwargs, **kw)
onnxscript\backend\onnx_export_test.py:267: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:135: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_reversesequence_time' (e=No module named 'tests.onnx_backend_test_code.test_reversesequence_time') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reversesequence_time.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reversesequence_time.py', current folder: D:\a\onnxscript\onnxscript
E ---- CONTENT --
E import numpy
E from onnx import TensorProto
E from onnx.helper import make_tensor
E from onnxscript import script, external_tensor
E from onnxscript.values import Opset
E from onnxscript.onnx_types import FLOAT, INT64
E from onnxscript.onnx_opset import opset10
E
E @script()
E def bck_test_reversesequence_time(x: FLOAT[4,4], sequence_lens: INT64[4]) -> (FLOAT[4,4]):
E y = opset10.ReverseSequence(x, sequence_lens, batch_axis=1, time_axis=0)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 2 runs failed: test_export2python_produces_correct_onnx_script_model_1247_test_tril_square_neg (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py39-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_tril_square_neg' (e=No module named 'tests.onnx_backend_test_code.test_tril_square_neg') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_tril_square_neg.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_tril_square_neg.py', current folder: D:\a\onnxscript\onnxscript
---- CONTENT --
import numpy
from onnx import TensorProto
from onnx.helper import make_tensor
from onnxscript import script, external_tensor
from onnxscript.values import Opset
from onnxscript.onnx_types import INT64
from onnxscript.onnx_opset import opset14
@script()
def bck_test_tril_square_neg(x: INT64[2,3,3], k: INT64) -> (INT64[2,3,3]):
y = opset14.Trilu(x, k, upper=0)
return y
onnxscript\backend\onnx_export_test.py:133: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.onnx_backend_test_code.test_tril_square_neg'
The above exception was the direct cause of the following exception:
.nox\test\lib\site-packages\parameterized\parameterized.py:620: in standalone_func
return func(*(a + p.args), **p.kwargs, **kw)
onnxscript\backend\onnx_export_test.py:267: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:135: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_tril_square_neg' (e=No module named 'tests.onnx_backend_test_code.test_tril_square_neg') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_tril_square_neg.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_tril_square_neg.py', current folder: D:\a\onnxscript\onnxscript
E ---- CONTENT --
E import numpy
E from onnx import TensorProto
E from onnx.helper import make_tensor
E from onnxscript import script, external_tensor
E from onnxscript.values import Opset
E from onnxscript.onnx_types import INT64
E from onnxscript.onnx_opset import opset14
E
E @script()
E def bck_test_tril_square_neg(x: INT64[2,3,3], k: INT64) -> (INT64[2,3,3]):
E y = opset14.Trilu(x, k, upper=0)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 2 runs failed: test_export2python_produces_correct_onnx_script_model_1113_test_sinh_example (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py39-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_sinh_example' (e=No module named 'tests.onnx_backend_test_code.test_sinh_example') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_sinh_example.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_sinh_example.py', current folder: D:\a\onnxscript\onnxscript
---- CONTENT --
import numpy
from onnx import TensorProto
from onnx.helper import make_tensor
from onnxscript import script, external_tensor
from onnxscript.values import Opset
from onnxscript.onnx_types import FLOAT
from onnxscript.onnx_opset import opset9
@script()
def bck_test_sinh_example(x: FLOAT[3]) -> (FLOAT[3]):
y = opset9.Sinh(x)
return y
onnxscript\backend\onnx_export_test.py:133: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.onnx_backend_test_code.test_sinh_example'
The above exception was the direct cause of the following exception:
.nox\test\lib\site-packages\parameterized\parameterized.py:620: in standalone_func
return func(*(a + p.args), **p.kwargs, **kw)
onnxscript\backend\onnx_export_test.py:267: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:135: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_sinh_example' (e=No module named 'tests.onnx_backend_test_code.test_sinh_example') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_sinh_example.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_sinh_example.py', current folder: D:\a\onnxscript\onnxscript
E ---- CONTENT --
E import numpy
E from onnx import TensorProto
E from onnx.helper import make_tensor
E from onnxscript import script, external_tensor
E from onnxscript.values import Opset
E from onnxscript.onnx_types import FLOAT
E from onnxscript.onnx_opset import opset9
E
E @script()
E def bck_test_sinh_example(x: FLOAT[3]) -> (FLOAT[3]):
E y = opset9.Sinh(x)
E return y