Support optional attribute checking in matcher #7377
1 errors, 65 fail, 1 904 skipped, 8 528 pass in 3h 15m 35s
Annotations
Check failure on line 0 in tests.function_libs.torch_lib.ops_test.TestOutputConsistencyEagerCPU
github-actions / Test Results
1 out of 23 runs with error: test_output_match_opinfo__clamp_min_cpu_float16 (tests.function_libs.torch_lib.ops_test.TestOutputConsistencyEagerCPU)
artifacts/Test Results (py38-macos-latest)/pytest.xml [took 0s]
Raw output
failed on setup with "worker 'gw1' crashed while running 'tests/function_libs/torch_lib/ops_test.py::TestOutputConsistencyEagerCPU::test_output_match_opinfo__clamp_min_cpu_float16'"
worker 'gw1' crashed while running 'tests/function_libs/torch_lib/ops_test.py::TestOutputConsistencyEagerCPU::test_output_match_opinfo__clamp_min_cpu_float16'
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0061_test_argmin_negative_axis_keepdims_example_select_last_index (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_argmin_negative_axis_keepdims_example_select_last_index' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_argmin_negative_axis_keepdims_example_select_last_index.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 opset13
@script()
def bck_test_argmin_negative_axis_keepdims_example_select_last_index(data: FLOAT[2,2]) -> (INT64[2,1]):
result = opset13.ArgMin(data, axis=-1, keepdims=1, select_last_index=1)
return result
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_argmin_negative_axis_keepdims_example_select_last_index'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_argmin_negative_axis_keepdims_example_select_last_index' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_argmin_negative_axis_keepdims_example_select_last_index.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 opset13
E
E @script()
E def bck_test_argmin_negative_axis_keepdims_example_select_last_index(data: FLOAT[2,2]) -> (INT64[2,1]):
E result = opset13.ArgMin(data, axis=-1, keepdims=1, select_last_index=1)
E return result
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
2 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0676_test_mul (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
artifacts/Test Results (py39-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_mul' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mul.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 opset14
@script()
def bck_test_mul(x: FLOAT[3,4,5], y: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
z = opset14.Mul(x, y)
return z
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_mul'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_mul' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mul.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 opset14
E
E @script()
E def bck_test_mul(x: FLOAT[3,4,5], y: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
E z = opset14.Mul(x, y)
E return z
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0903_test_reduce_sum_empty_axes_input_noop_example (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_reduce_sum_empty_axes_input_noop_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_sum_empty_axes_input_noop_example.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 opset13
@script()
def bck_test_reduce_sum_empty_axes_input_noop_example(data: FLOAT[3,2,2], axes: INT64[0]) -> (FLOAT[3,2,2]):
reduced = opset13.ReduceSum(data, axes, keepdims=1, noop_with_empty_axes=1)
return reduced
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_reduce_sum_empty_axes_input_noop_example'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_reduce_sum_empty_axes_input_noop_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_sum_empty_axes_input_noop_example.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 opset13
E
E @script()
E def bck_test_reduce_sum_empty_axes_input_noop_example(data: FLOAT[3,2,2], axes: INT64[0]) -> (FLOAT[3,2,2]):
E reduced = opset13.ReduceSum(data, axes, keepdims=1, noop_with_empty_axes=1)
E return reduced
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_1253_test_triu_out_pos (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_triu_out_pos' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_triu_out_pos.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 INT64
from onnxscript.onnx_opset import opset14
@script()
def bck_test_triu_out_pos(x: INT64[4,5], k: INT64) -> (INT64[4,5]):
y = opset14.Trilu(x, k)
return y
onnxscript\backend\onnx_export_test.py:115: 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_triu_out_pos'
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_triu_out_pos' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_triu_out_pos.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 INT64
E from onnxscript.onnx_opset import opset14
E
E @script()
E def bck_test_triu_out_pos(x: INT64[4,5], k: INT64) -> (INT64[4,5]):
E y = opset14.Trilu(x, k)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0831_test_reduce_l2_negative_axes_keep_dims_example (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py312-torch-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_reduce_l2_negative_axes_keep_dims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_l2_negative_axes_keep_dims_example.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 opset18
@script()
def bck_test_reduce_l2_negative_axes_keep_dims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,2,1]):
reduced = opset18.ReduceL2(data, axes, keepdims=1)
return reduced
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.12.4\x64\Lib\importlib\__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.onnx_backend_test_code.test_reduce_l2_negative_axes_keep_dims_example'
The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\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_reduce_l2_negative_axes_keep_dims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_l2_negative_axes_keep_dims_example.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 opset18
E
E @script()
E def bck_test_reduce_l2_negative_axes_keep_dims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,2,1]):
E reduced = opset18.ReduceL2(data, axes, keepdims=1)
E return reduced
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0457_test_hardmax_axis_2 (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-torch-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_hardmax_axis_2' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_hardmax_axis_2.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 opset13
@script()
def bck_test_hardmax_axis_2(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
y = opset13.Hardmax(x, axis=2)
return y
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_hardmax_axis_2'
The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\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_hardmax_axis_2' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_hardmax_axis_2.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 opset13
E
E @script()
E def bck_test_hardmax_axis_2(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
E y = opset13.Hardmax(x, axis=2)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
2 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0251_test_clip_outbounds_expanded (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py310-windows-latest)/pytest.xml [took 0s]
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_clip_outbounds_expanded' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_clip_outbounds_expanded.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 opset13
@script()
def bck_test_clip_outbounds_expanded(x: FLOAT[3], min: FLOAT, max: FLOAT) -> (FLOAT[3]):
Clip_test_clip_outbounds_expanded_function_input_less_than_min = opset13.Less(x, min)
Clip_test_clip_outbounds_expanded_function_tmp = opset13.Where(Clip_test_clip_outbounds_expanded_function_input_less_than_min, min, x)
Clip_test_clip_outbounds_expanded_function_output_large_than_max = opset13.Less(max, Clip_test_clip_outbounds_expanded_function_tmp)
y = opset13.Where(Clip_test_clip_outbounds_expanded_function_output_large_than_max, max, Clip_test_clip_outbounds_expanded_function_tmp)
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_clip_outbounds_expanded'
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_clip_outbounds_expanded' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_clip_outbounds_expanded.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 opset13
E
E @script()
E def bck_test_clip_outbounds_expanded(x: FLOAT[3], min: FLOAT, max: FLOAT) -> (FLOAT[3]):
E Clip_test_clip_outbounds_expanded_function_input_less_than_min = opset13.Less(x, min)
E Clip_test_clip_outbounds_expanded_function_tmp = opset13.Where(Clip_test_clip_outbounds_expanded_function_input_less_than_min, min, x)
E Clip_test_clip_outbounds_expanded_function_output_large_than_max = opset13.Less(max, Clip_test_clip_outbounds_expanded_function_tmp)
E y = opset13.Where(Clip_test_clip_outbounds_expanded_function_output_large_than_max, max, Clip_test_clip_outbounds_expanded_function_tmp)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0418_test_greater_equal_bcast (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py312-torch-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_greater_equal_bcast' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_greater_equal_bcast.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 BOOL, FLOAT
from onnxscript.onnx_opset import opset16
@script()
def bck_test_greater_equal_bcast(x: FLOAT[3,4,5], y: FLOAT[5]) -> (BOOL[3,4,5]):
greater_equal = opset16.GreaterOrEqual(x, y)
return greater_equal
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.12.4\x64\Lib\importlib\__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.onnx_backend_test_code.test_greater_equal_bcast'
The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\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_greater_equal_bcast' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_greater_equal_bcast.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 BOOL, FLOAT
E from onnxscript.onnx_opset import opset16
E
E @script()
E def bck_test_greater_equal_bcast(x: FLOAT[3,4,5], y: FLOAT[5]) -> (BOOL[3,4,5]):
E greater_equal = opset16.GreaterOrEqual(x, y)
E return greater_equal
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_1274_test_xor2d (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-torch-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_xor2d' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_xor2d.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 BOOL
from onnxscript.onnx_opset import opset7
@script()
def bck_test_xor2d(x: BOOL[3,4], y: BOOL[3,4]) -> (BOOL[3,4]):
xor = opset7.Xor(x, y)
return xor
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_xor2d'
The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\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_xor2d' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_xor2d.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 BOOL
E from onnxscript.onnx_opset import opset7
E
E @script()
E def bck_test_xor2d(x: BOOL[3,4], y: BOOL[3,4]) -> (BOOL[3,4]):
E xor = opset7.Xor(x, y)
E return xor
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0129_test_bitwise_xor_i32_2d (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_bitwise_xor_i32_2d' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_bitwise_xor_i32_2d.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 INT32
from onnxscript.onnx_opset import opset18
@script()
def bck_test_bitwise_xor_i32_2d(x: INT32[3,4], y: INT32[3,4]) -> (INT32[3,4]):
bitwisexor = opset18.BitwiseXor(x, y)
return bitwisexor
onnxscript\backend\onnx_export_test.py:115: 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_bitwise_xor_i32_2d'
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_bitwise_xor_i32_2d' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_bitwise_xor_i32_2d.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 INT32
E from onnxscript.onnx_opset import opset18
E
E @script()
E def bck_test_bitwise_xor_i32_2d(x: INT32[3,4], y: INT32[3,4]) -> (INT32[3,4]):
E bitwisexor = opset18.BitwiseXor(x, y)
E return bitwisexor
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0273_test_concat_3d_axis_negative_2 (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_concat_3d_axis_negative_2' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_concat_3d_axis_negative_2.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 opset13
@script()
def bck_test_concat_3d_axis_negative_2(value0: FLOAT[2,2,2], value1: FLOAT[2,2,2]) -> (FLOAT[2,4,2]):
output = opset13.Concat(value0, value1, axis=-2)
return output
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_concat_3d_axis_negative_2'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_concat_3d_axis_negative_2' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_concat_3d_axis_negative_2.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 opset13
E
E @script()
E def bck_test_concat_3d_axis_negative_2(value0: FLOAT[2,2,2], value1: FLOAT[2,2,2]) -> (FLOAT[2,4,2]):
E output = opset13.Concat(value0, value1, axis=-2)
E return output
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0569_test_logsoftmax_axis_2 (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_logsoftmax_axis_2' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_logsoftmax_axis_2.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 opset13
@script()
def bck_test_logsoftmax_axis_2(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
y = opset13.LogSoftmax(x, axis=2)
return y
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_logsoftmax_axis_2'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_logsoftmax_axis_2' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_logsoftmax_axis_2.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 opset13
E
E @script()
E def bck_test_logsoftmax_axis_2(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
E y = opset13.LogSoftmax(x, axis=2)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_1134_test_softmax_default_axis (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_softmax_default_axis' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_softmax_default_axis.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 opset13
@script()
def bck_test_softmax_default_axis(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
y = opset13.Softmax(x)
return y
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_softmax_default_axis'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_softmax_default_axis' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_softmax_default_axis.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 opset13
E
E @script()
E def bck_test_softmax_default_axis(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
E y = opset13.Softmax(x)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0924_test_reduce_sum_square_negative_axes_keepdims_example (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_reduce_sum_square_negative_axes_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_sum_square_negative_axes_keepdims_example.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 opset18
@script()
def bck_test_reduce_sum_square_negative_axes_keepdims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,1,2]):
reduced = opset18.ReduceSumSquare(data, axes, keepdims=1)
return reduced
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_reduce_sum_square_negative_axes_keepdims_example'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_reduce_sum_square_negative_axes_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_sum_square_negative_axes_keepdims_example.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 opset18
E
E @script()
E def bck_test_reduce_sum_square_negative_axes_keepdims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,1,2]):
E reduced = opset18.ReduceSumSquare(data, axes, keepdims=1)
E return reduced
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0662_test_mod_int64_fmod (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_mod_int64_fmod' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mod_int64_fmod.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 INT64
from onnxscript.onnx_opset import opset13
@script()
def bck_test_mod_int64_fmod(x: INT64[6], y: INT64[6]) -> (INT64[6]):
z = opset13.Mod(x, y, fmod=1)
return z
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_mod_int64_fmod'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_mod_int64_fmod' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mod_int64_fmod.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 INT64
E from onnxscript.onnx_opset import opset13
E
E @script()
E def bck_test_mod_int64_fmod(x: INT64[6], y: INT64[6]) -> (INT64[6]):
E z = opset13.Mod(x, y, fmod=1)
E return z
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0648_test_min_float64 (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py38-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_min_float64' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_min_float64.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 DOUBLE
from onnxscript.onnx_opset import opset13
@script()
def bck_test_min_float64(data_0: DOUBLE[3], data_1: DOUBLE[3]) -> (DOUBLE[3]):
result = opset13.Min(data_0, data_1)
return result
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.8.10\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_min_float64'
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_min_float64' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_min_float64.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 DOUBLE
E from onnxscript.onnx_opset import opset13
E
E @script()
E def bck_test_min_float64(data_0: DOUBLE[3], data_1: DOUBLE[3]) -> (DOUBLE[3]):
E result = opset13.Min(data_0, data_1)
E return result
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0267_test_concat_2d_axis_negative_1 (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_concat_2d_axis_negative_1' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_concat_2d_axis_negative_1.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 opset13
@script()
def bck_test_concat_2d_axis_negative_1(value0: FLOAT[2,2], value1: FLOAT[2,2]) -> (FLOAT[2,4]):
output = opset13.Concat(value0, value1, axis=-1)
return output
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_concat_2d_axis_negative_1'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_concat_2d_axis_negative_1' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_concat_2d_axis_negative_1.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 opset13
E
E @script()
E def bck_test_concat_2d_axis_negative_1(value0: FLOAT[2,2], value1: FLOAT[2,2]) -> (FLOAT[2,4]):
E output = opset13.Concat(value0, value1, axis=-1)
E return output
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0403_test_gemm_default_matrix_bias (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py38-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_gemm_default_matrix_bias' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_gemm_default_matrix_bias.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 opset13
@script()
def bck_test_gemm_default_matrix_bias(a: FLOAT[3,6], b: FLOAT[6,4], c: FLOAT[3,4]) -> (FLOAT[3,4]):
y = opset13.Gemm(a, b, c)
return y
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.8.10\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_gemm_default_matrix_bias'
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_gemm_default_matrix_bias' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_gemm_default_matrix_bias.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 opset13
E
E @script()
E def bck_test_gemm_default_matrix_bias(a: FLOAT[3,6], b: FLOAT[6,4], c: FLOAT[3,4]) -> (FLOAT[3,4]):
E y = opset13.Gemm(a, b, c)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0000_test_abs (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-torch-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_abs' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_abs.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 opset13
@script()
def bck_test_abs(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
y = opset13.Abs(x)
return y
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_abs'
The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\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_abs' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_abs.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 opset13
E
E @script()
E def bck_test_abs(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
E y = opset13.Abs(x)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0306_test_cumsum_2d_axis_1 (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-torch-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_cumsum_2d_axis_1' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_cumsum_2d_axis_1.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 DOUBLE, INT32
from onnxscript.onnx_opset import opset14
@script()
def bck_test_cumsum_2d_axis_1(x: DOUBLE[2,3], axis: INT32) -> (DOUBLE[2,3]):
y = opset14.CumSum(x, axis)
return y
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_cumsum_2d_axis_1'
The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\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_cumsum_2d_axis_1' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_cumsum_2d_axis_1.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 DOUBLE, INT32
E from onnxscript.onnx_opset import opset14
E
E @script()
E def bck_test_cumsum_2d_axis_1(x: DOUBLE[2,3], axis: INT32) -> (DOUBLE[2,3]):
E y = opset14.CumSum(x, axis)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0242_test_clip_default_max_expanded (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py38-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_clip_default_max_expanded' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_clip_default_max_expanded.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 opset13
@script()
def bck_test_clip_default_max_expanded(x: FLOAT[3,4,5], max: FLOAT) -> (FLOAT[3,4,5]):
Clip_test_clip_default_max_expanded_function_input_large_than_max = opset13.Less(max, x)
y = opset13.Where(Clip_test_clip_default_max_expanded_function_input_large_than_max, max, x)
return y
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.8.10\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_clip_default_max_expanded'
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_clip_default_max_expanded' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_clip_default_max_expanded.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 opset13
E
E @script()
E def bck_test_clip_default_max_expanded(x: FLOAT[3,4,5], max: FLOAT) -> (FLOAT[3,4,5]):
E Clip_test_clip_default_max_expanded_function_input_large_than_max = opset13.Less(max, x)
E y = opset13.Where(Clip_test_clip_default_max_expanded_function_input_large_than_max, max, x)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0396_test_gelu_tanh_1 (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_gelu_tanh_1' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_gelu_tanh_1.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 opset20
@script()
def bck_test_gelu_tanh_1(x: FLOAT[3]) -> (FLOAT[3]):
y = opset20.Gelu(x, approximate='tanh')
return y
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.11.9\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_gelu_tanh_1'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_gelu_tanh_1' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_gelu_tanh_1.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 opset20
E
E @script()
E def bck_test_gelu_tanh_1(x: FLOAT[3]) -> (FLOAT[3]):
E y = opset20.Gelu(x, approximate='tanh')
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_1103_test_shrink_soft (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py312-torch-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_shrink_soft' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_shrink_soft.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 opset9
@script()
def bck_test_shrink_soft(x: FLOAT[5]) -> (FLOAT[5]):
y = opset9.Shrink(x, bias=1.5, lambd=1.5)
return y
onnxscript\backend\onnx_export_test.py:115: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.12.4\x64\Lib\importlib\__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.onnx_backend_test_code.test_shrink_soft'
The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\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_shrink_soft' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_shrink_soft.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 opset9
E
E @script()
E def bck_test_shrink_soft(x: FLOAT[5]) -> (FLOAT[5]):
E y = opset9.Shrink(x, bias=1.5, lambd=1.5)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 7 runs failed: test_export2python_produces_correct_onnx_script_model_0735_test_onehot_negative_indices (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-ort-nightly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_onehot_negative_indices' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_onehot_negative_indices.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 opset11
@script()
def bck_test_onehot_negative_indices(indices: INT64[3], depth: FLOAT, values: FLOAT[2]) -> (FLOAT[3,10]):
y = opset11.OneHot(indices, depth, values, 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.11.9\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_onehot_negative_indices'
The above exception was the direct cause of the following exception:
.nox\test_ort_nightly\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_onehot_negative_indices' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_onehot_negative_indices.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 opset11
E
E @script()
E def bck_test_onehot_negative_indices(indices: INT64[3], depth: FLOAT, values: FLOAT[2]) -> (FLOAT[3,10]):
E y = opset11.OneHot(indices, depth, values, axis=1)
E return y