[torchlib] Add torchlib operator for glu #7378
1 errors, 66 fail, 1 904 skipped, 7 073 pass in 3h 1m 15s
Annotations
Check failure on line 0 in tests.function_libs.torch_lib.ops_test.TestOutputConsistencyFullGraphCPU
github-actions / Test Results
1 out of 22 runs with error: test_output_match_opinfo__minimum_cpu_float16 (tests.function_libs.torch_lib.ops_test.TestOutputConsistencyFullGraphCPU)
artifacts/Test Results (py311-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::TestOutputConsistencyFullGraphCPU::test_output_match_opinfo__minimum_cpu_float16'"
worker 'gw1' crashed while running 'tests/function_libs/torch_lib/ops_test.py::TestOutputConsistencyFullGraphCPU::test_output_match_opinfo__minimum_cpu_float16'
Check warning on line 0 in tests.function_libs.torch_lib.ops_test.TestOutputConsistencyFullGraphCPU
github-actions / Test Results
1 out of 22 runs failed: test_output_match_opinfo__nn_functional_logsigmoid_cpu_float32 (tests.function_libs.torch_lib.ops_test.TestOutputConsistencyFullGraphCPU)
artifacts/Test Results (py39-ubuntu-latest)/pytest.xml [took 31s]
Raw output
ConnectionResetError: [Errno 104] Connection reset by peer
tests/function_libs/torch_lib/ops_test.py:215: in run_test_output_match
function_output = function_executor(test_name, reference_torch_outputs)(
tests/function_libs/torch_lib/ops_test_common.py:550: in _capture_graph_and_evaluate_torch_script_evaluator
return _safe_ort_session_run(onnx_model.SerializeToString(), ort_inputs)
tests/function_libs/torch_lib/ops_test_common.py:357: in _safe_ort_session_run
return_dict = manager.dict()
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/multiprocessing/managers.py:715: in temp
token, exp = self._create(typeid, *args, **kwds)
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/multiprocessing/managers.py:598: in _create
conn = self._Client(self._address, authkey=self._authkey)
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/multiprocessing/connection.py:508: in Client
answer_challenge(c, authkey)
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/multiprocessing/connection.py:752: in answer_challenge
message = connection.recv_bytes(256) # reject large message
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/multiprocessing/connection.py:216: in recv_bytes
buf = self._recv_bytes(maxlength)
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/multiprocessing/connection.py:414: in _recv_bytes
buf = self._recv(4)
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/multiprocessing/connection.py:379: in _recv
chunk = read(handle, remaining)
E ConnectionResetError: [Errno 104] Connection reset by peer
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0596_test_lrn (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_lrn' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_lrn.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_lrn(x: FLOAT[5,5,5,5]) -> (FLOAT[5,5,5,5]):
y = opset13.LRN(x, alpha=0.00019999999494757503, beta=0.5, bias=2.0, size=3)
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_lrn'
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_lrn' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_lrn.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_lrn(x: FLOAT[5,5,5,5]) -> (FLOAT[5,5,5,5]):
E y = opset13.LRN(x, alpha=0.00019999999494757503, beta=0.5, bias=2.0, size=3)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0128_test_bitwise_xor_i16_3d (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_bitwise_xor_i16_3d' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_bitwise_xor_i16_3d.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 INT16
from onnxscript.onnx_opset import opset18
@script()
def bck_test_bitwise_xor_i16_3d(x: INT16[3,4,5], y: INT16[3,4,5]) -> (INT16[3,4,5]):
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.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_bitwise_xor_i16_3d'
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_bitwise_xor_i16_3d' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_bitwise_xor_i16_3d.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 INT16
E from onnxscript.onnx_opset import opset18
E
E @script()
E def bck_test_bitwise_xor_i16_3d(x: INT16[3,4,5], y: INT16[3,4,5]) -> (INT16[3,4,5]):
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 8 runs failed: test_export2python_produces_correct_onnx_script_model_0130_test_bitwise_xor_ui64_bcast_3v1d (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_bitwise_xor_ui64_bcast_3v1d' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_bitwise_xor_ui64_bcast_3v1d.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 UINT64
from onnxscript.onnx_opset import opset18
@script()
def bck_test_bitwise_xor_ui64_bcast_3v1d(x: UINT64[3,4,5], y: UINT64[5]) -> (UINT64[3,4,5]):
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.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_bitwise_xor_ui64_bcast_3v1d'
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_bitwise_xor_ui64_bcast_3v1d' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_bitwise_xor_ui64_bcast_3v1d.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 UINT64
E from onnxscript.onnx_opset import opset18
E
E @script()
E def bck_test_bitwise_xor_ui64_bcast_3v1d(x: UINT64[3,4,5], y: UINT64[5]) -> (UINT64[3,4,5]):
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 8 runs failed: test_export2python_produces_correct_onnx_script_model_0920_test_reduce_sum_square_keepdims_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_reduce_sum_square_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_sum_square_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_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.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_reduce_sum_square_keepdims_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: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_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_sum_square_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_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 8 runs failed: test_export2python_produces_correct_onnx_script_model_0064_test_argmin_no_keepdims_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_argmin_no_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_argmin_no_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 opset13
@script()
def bck_test_argmin_no_keepdims_example(data: FLOAT[2,2]) -> (INT64[2]):
result = opset13.ArgMin(data, axis=1, keepdims=0)
return result
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_argmin_no_keepdims_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: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_no_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_argmin_no_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 opset13
E
E @script()
E def bck_test_argmin_no_keepdims_example(data: FLOAT[2,2]) -> (INT64[2]):
E result = opset13.ArgMin(data, axis=1, keepdims=0)
E return result
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0362_test_equal_string_broadcast (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_equal_string_broadcast' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_equal_string_broadcast.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, STRING
from onnxscript.onnx_opset import opset19
@script()
def bck_test_equal_string_broadcast(x: STRING[2], y: STRING[1]) -> (BOOL[2]):
z = opset19.Equal(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.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_equal_string_broadcast'
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_equal_string_broadcast' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_equal_string_broadcast.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, STRING
E from onnxscript.onnx_opset import opset19
E
E @script()
E def bck_test_equal_string_broadcast(x: STRING[2], y: STRING[1]) -> (BOOL[2]):
E z = opset19.Equal(x, y)
E return z
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0252_test_clip_splitbounds (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-onnx-weekly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_clip_splitbounds' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_clip_splitbounds.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_splitbounds(x: FLOAT[3], min: FLOAT, max: FLOAT) -> (FLOAT[3]):
y = opset13.Clip(x, min, max)
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_clip_splitbounds'
The above exception was the direct cause of the following exception:
.nox\test_onnx_weekly\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_splitbounds' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_clip_splitbounds.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_splitbounds(x: FLOAT[3], min: FLOAT, max: FLOAT) -> (FLOAT[3]):
E y = opset13.Clip(x, min, max)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0673_test_mod_uint8 (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_uint8' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mod_uint8.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 UINT8
from onnxscript.onnx_opset import opset13
@script()
def bck_test_mod_uint8(x: UINT8[3], y: UINT8[3]) -> (UINT8[3]):
z = opset13.Mod(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_mod_uint8'
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_uint8' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mod_uint8.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 UINT8
E from onnxscript.onnx_opset import opset13
E
E @script()
E def bck_test_mod_uint8(x: UINT8[3], y: UINT8[3]) -> (UINT8[3]):
E z = opset13.Mod(x, y)
E return z
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0416_test_greater_bcast (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_greater_bcast' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_greater_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 opset13
@script()
def bck_test_greater_bcast(x: FLOAT[3,4,5], y: FLOAT[5]) -> (BOOL[3,4,5]):
greater = opset13.Greater(x, y)
return greater
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_greater_bcast'
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_greater_bcast' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_greater_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 opset13
E
E @script()
E def bck_test_greater_bcast(x: FLOAT[3,4,5], y: FLOAT[5]) -> (BOOL[3,4,5]):
E greater = opset13.Greater(x, y)
E return greater
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0101_test_batchnorm_example (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-onnx-weekly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_batchnorm_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_batchnorm_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
from onnxscript.onnx_opset import opset15
@script()
def bck_test_batchnorm_example(x: FLOAT[2,3,4,5], s: FLOAT[3], bias: FLOAT[3], mean: FLOAT[3], var: FLOAT[3]) -> (FLOAT[2,3,4,5]):
y = opset15.BatchNormalization(x, s, bias, mean, var)
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_batchnorm_example'
The above exception was the direct cause of the following exception:
.nox\test_onnx_weekly\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_batchnorm_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_batchnorm_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
E from onnxscript.onnx_opset import opset15
E
E @script()
E def bck_test_batchnorm_example(x: FLOAT[2,3,4,5], s: FLOAT[3], bias: FLOAT[3], mean: FLOAT[3], var: FLOAT[3]) -> (FLOAT[2,3,4,5]):
E y = opset15.BatchNormalization(x, s, bias, mean, var)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0085_test_averagepool_2d_precomputed_strides (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_averagepool_2d_precomputed_strides' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_averagepool_2d_precomputed_strides.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_averagepool_2d_precomputed_strides(x: FLOAT[1,1,5,5]) -> (FLOAT[1,1,2,2]):
y = opset19.AveragePool(x, kernel_shape=[2, 2], strides=[2, 2])
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_averagepool_2d_precomputed_strides'
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_averagepool_2d_precomputed_strides' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_averagepool_2d_precomputed_strides.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_averagepool_2d_precomputed_strides(x: FLOAT[1,1,5,5]) -> (FLOAT[1,1,2,2]):
E y = opset19.AveragePool(x, kernel_shape=[2, 2], strides=[2, 2])
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0878_test_reduce_mean_negative_axes_keepdims_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_mean_negative_axes_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_mean_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_mean_negative_axes_keepdims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,1,2]):
reduced = opset18.ReduceMean(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_mean_negative_axes_keepdims_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_mean_negative_axes_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_mean_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_mean_negative_axes_keepdims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,1,2]):
E reduced = opset18.ReduceMean(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 8 runs failed: test_export2python_produces_correct_onnx_script_model_0643_test_mean_two_inputs (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_mean_two_inputs' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mean_two_inputs.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_mean_two_inputs(data_0: FLOAT[3], data_1: FLOAT[3]) -> (FLOAT[3]):
result = opset13.Mean(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.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_mean_two_inputs'
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_mean_two_inputs' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mean_two_inputs.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_mean_two_inputs(data_0: FLOAT[3], data_1: FLOAT[3]) -> (FLOAT[3]):
E result = opset13.Mean(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 8 runs failed: test_export2python_produces_correct_onnx_script_model_0550_test_leakyrelu (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-onnx-weekly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_leakyrelu' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_leakyrelu.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 opset16
@script()
def bck_test_leakyrelu(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
y = opset16.LeakyRelu(x, alpha=0.10000000149011612)
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_leakyrelu'
The above exception was the direct cause of the following exception:
.nox\test_onnx_weekly\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_leakyrelu' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_leakyrelu.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 opset16
E
E @script()
E def bck_test_leakyrelu(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
E y = opset16.LeakyRelu(x, alpha=0.10000000149011612)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0638_test_max_uint32 (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_max_uint32' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_max_uint32.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 UINT32
from onnxscript.onnx_opset import opset13
@script()
def bck_test_max_uint32(data_0: UINT32[3], data_1: UINT32[3]) -> (UINT32[3]):
result = opset13.Max(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.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_max_uint32'
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_max_uint32' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_max_uint32.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 UINT32
E from onnxscript.onnx_opset import opset13
E
E @script()
E def bck_test_max_uint32(data_0: UINT32[3], data_1: UINT32[3]) -> (UINT32[3]):
E result = opset13.Max(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 8 runs failed: test_export2python_produces_correct_onnx_script_model_0872_test_reduce_mean_default_axes_keepdims_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_reduce_mean_default_axes_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_mean_default_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_mean_default_axes_keepdims_example(data: FLOAT[3,2,2], axes: INT64[0]) -> (FLOAT[1,1,1]):
reduced = opset18.ReduceMean(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.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_reduce_mean_default_axes_keepdims_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: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_mean_default_axes_keepdims_example' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_reduce_mean_default_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_mean_default_axes_keepdims_example(data: FLOAT[3,2,2], axes: INT64[0]) -> (FLOAT[1,1,1]):
E reduced = opset18.ReduceMean(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 8 runs failed: test_export2python_produces_correct_onnx_script_model_1243_test_tril_out_neg (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_tril_out_neg' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_tril_out_neg.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_tril_out_neg(x: INT64[4,5], k: INT64) -> (INT64[4,5]):
y = opset14.Trilu(x, k, upper=0)
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_tril_out_neg'
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_tril_out_neg' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_tril_out_neg.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_tril_out_neg(x: INT64[4,5], k: INT64) -> (INT64[4,5]):
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 8 runs failed: test_export2python_produces_correct_onnx_script_model_0437_test_gridsample_volumetric_nearest_align_corners_1 (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_gridsample_volumetric_nearest_align_corners_1' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_gridsample_volumetric_nearest_align_corners_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_gridsample_volumetric_nearest_align_corners_1(X: FLOAT[1,1,3,2,2], Grid: FLOAT[1,2,4,2,3]) -> (FLOAT[1,1,2,4,2]):
Y = opset20.GridSample(X, Grid, align_corners=1, mode='nearest')
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_gridsample_volumetric_nearest_align_corners_1'
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_gridsample_volumetric_nearest_align_corners_1' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_gridsample_volumetric_nearest_align_corners_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_gridsample_volumetric_nearest_align_corners_1(X: FLOAT[1,1,3,2,2], Grid: FLOAT[1,2,4,2,3]) -> (FLOAT[1,1,2,4,2]):
E Y = opset20.GridSample(X, Grid, align_corners=1, mode='nearest')
E return Y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0671_test_mod_uint32 (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_mod_uint32' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mod_uint32.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 UINT32
from onnxscript.onnx_opset import opset13
@script()
def bck_test_mod_uint32(x: UINT32[3], y: UINT32[3]) -> (UINT32[3]):
z = opset13.Mod(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.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_mod_uint32'
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_mod_uint32' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_mod_uint32.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 UINT32
E from onnxscript.onnx_opset import opset13
E
E @script()
E def bck_test_mod_uint32(x: UINT32[3], y: UINT32[3]) -> (UINT32[3]):
E z = opset13.Mod(x, y)
E return z
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_1240_test_tril (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-onnx-weekly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_tril' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_tril.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_tril(x: INT64[4,5]) -> (INT64[4,5]):
y = opset14.Trilu(x, upper=0)
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_tril'
The above exception was the direct cause of the following exception:
.nox\test_onnx_weekly\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_tril' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_tril.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_tril(x: INT64[4,5]) -> (INT64[4,5]):
E y = opset14.Trilu(x, upper=0)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0244_test_clip_default_min_expanded (onnxscript.backend.onnx_export_test.TestOnnxBackEnd)
artifacts/Test Results (py311-onnx-weekly-windows-latest)/pytest.xml [took 0s]
Raw output
AssertionError: Unable to import 'tests.onnx_backend_test_code.test_clip_default_min_expanded' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_clip_default_min_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_min_expanded(x: FLOAT[3,4,5], min: FLOAT) -> (FLOAT[3,4,5]):
Clip_test_clip_default_min_expanded_function_input_less_than_min = opset13.Less(x, min)
y = opset13.Where(Clip_test_clip_default_min_expanded_function_input_less_than_min, min, 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_clip_default_min_expanded'
The above exception was the direct cause of the following exception:
.nox\test_onnx_weekly\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_min_expanded' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_clip_default_min_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_min_expanded(x: FLOAT[3,4,5], min: FLOAT) -> (FLOAT[3,4,5]):
E Clip_test_clip_default_min_expanded_function_input_less_than_min = opset13.Less(x, min)
E y = opset13.Where(Clip_test_clip_default_min_expanded_function_input_less_than_min, min, x)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0402_test_gemm_beta (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_gemm_beta' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_gemm_beta.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_beta(a: FLOAT[2,7], b: FLOAT[7,4], c: FLOAT[1,4]) -> (FLOAT[2,4]):
y = opset13.Gemm(a, b, c, beta=0.5)
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_gemm_beta'
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_beta' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_gemm_beta.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_beta(a: FLOAT[2,7], b: FLOAT[7,4], c: FLOAT[1,4]) -> (FLOAT[2,4]):
E y = opset13.Gemm(a, b, c, beta=0.5)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 8 runs failed: test_export2python_produces_correct_onnx_script_model_0487_test_isinf (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_isinf' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_isinf.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 opset20
@script()
def bck_test_isinf(x: FLOAT[6]) -> (BOOL[6]):
y = opset20.IsInf(x)
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_isinf'
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_isinf' (file: WindowsPath('D:/a/onnxscript/onnxscript/tests/onnx_backend_test_code/test_isinf.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 opset20
E
E @script()
E def bck_test_isinf(x: FLOAT[6]) -> (BOOL[6]):
E y = opset20.IsInf(x)
E return y