Allow rewriter input/output to be IR #7123
4 fail, 1 879 skipped, 7 026 pass in 2h 46m 51s
Annotations
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
test_export2python_produces_correct_onnx_script_model_0981_test_reversesequence_batch (onnxscript.backend.onnx_export_test.TestOnnxBackEnd) failed
artifacts/Test Results (py310-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_reversesequence_batch' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reversesequence_batch.py'))
----
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_batch(x: FLOAT[4,4], sequence_lens: INT64[4]) -> (FLOAT[4,4]):
y = opset10.ReverseSequence(x, sequence_lens, batch_axis=0, time_axis=1)
return y
onnxscript\backend\onnx_export_test.py:115: 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_batch'
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:246: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:117: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_reversesequence_batch' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reversesequence_batch.py'))
E ----
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_batch(x: FLOAT[4,4], sequence_lens: INT64[4]) -> (FLOAT[4,4]):
E y = opset10.ReverseSequence(x, sequence_lens, batch_axis=0, time_axis=1)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
test_export2python_produces_correct_onnx_script_model_0987_test_round (onnxscript.backend.onnx_export_test.TestOnnxBackEnd) failed
artifacts/Test Results (py310-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_round' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_round.py'))
----
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 opset11
@script()
def bck_test_round(x: FLOAT[15]) -> (FLOAT[15]):
y = opset11.Round(x)
return y
onnxscript\backend\onnx_export_test.py:115: 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_round'
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:246: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:117: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_round' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_round.py'))
E ----
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 opset11
E
E @script()
E def bck_test_round(x: FLOAT[15]) -> (FLOAT[15]):
E y = opset11.Round(x)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
test_export2python_produces_correct_onnx_script_model_0593_test_lppool_2d_same_upper (onnxscript.backend.onnx_export_test.TestOnnxBackEnd) failed
artifacts/Test Results (py310-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_lppool_2d_same_upper' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_lppool_2d_same_upper.py'))
----
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 opset18
@script()
def bck_test_lppool_2d_same_upper(x: FLOAT[1,3,32,32]) -> (FLOAT[1,3,32,32]):
y = opset18.LpPool(x, auto_pad='SAME_UPPER', kernel_shape=[2, 2], p=2)
return y
onnxscript\backend\onnx_export_test.py:115: 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_lppool_2d_same_upper'
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:246: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:117: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_lppool_2d_same_upper' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_lppool_2d_same_upper.py'))
E ----
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 opset18
E
E @script()
E def bck_test_lppool_2d_same_upper(x: FLOAT[1,3,32,32]) -> (FLOAT[1,3,32,32]):
E y = opset18.LpPool(x, auto_pad='SAME_UPPER', kernel_shape=[2, 2], p=2)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
test_export2python_produces_correct_onnx_script_model_0965_test_resize_upsample_scales_cubic_asymmetric (onnxscript.backend.onnx_export_test.TestOnnxBackEnd) failed
artifacts/Test Results (py310-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_resize_upsample_scales_cubic_asymmetric' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_resize_upsample_scales_cubic_asymmetric.py'))
----
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 opset19
@script()
def bck_test_resize_upsample_scales_cubic_asymmetric(X: FLOAT[1,1,4,4], scales: FLOAT[4]) -> (FLOAT[1,1,8,8]):
Y = opset19.Resize(X, None, scales, coordinate_transformation_mode='asymmetric', mode='cubic')
return Y
onnxscript\backend\onnx_export_test.py:115: 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_resize_upsample_scales_cubic_asymmetric'
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:246: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:117: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_resize_upsample_scales_cubic_asymmetric' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_resize_upsample_scales_cubic_asymmetric.py'))
E ----
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 opset19
E
E @script()
E def bck_test_resize_upsample_scales_cubic_asymmetric(X: FLOAT[1,1,4,4], scales: FLOAT[4]) -> (FLOAT[1,1,8,8]):
E Y = opset19.Resize(X, None, scales, coordinate_transformation_mode='asymmetric', mode='cubic')
E return Y