Add aten_convolution_backward function #1707
1 errors, 5 fail, 2 581 skipped, 10 498 pass in 2h 17m 41s
Annotations
Check failure on line 0 in tests.function_libs.torch_lib.ops_test.TestOutputConsistencyEagerCPU
github-actions / Test Results
1 out of 16 runs with error: test_output_match_opinfo__clamp_cpu_float16 (tests.function_libs.torch_lib.ops_test.TestOutputConsistencyEagerCPU)
artifacts/Test Results (py311-ort-nightly-ubuntu-latest)/pytest.xml [took 0s]
Raw output
failed on setup with "worker 'gw0' crashed while running 'tests/function_libs/torch_lib/ops_test.py::TestOutputConsistencyEagerCPU::test_output_match_opinfo__clamp_cpu_float16'"
worker 'gw0' crashed while running 'tests/function_libs/torch_lib/ops_test.py::TestOutputConsistencyEagerCPU::test_output_match_opinfo__clamp_cpu_float16'
Check warning on line 0 in onnxscript.tools.transformers_models.phi_test.TestExportPhi
github-actions / Test Results
8 out of 10 runs failed: test_phi_dort_static (onnxscript.tools.transformers_models.phi_test.TestExportPhi)
artifacts/Test Results (py310-macos-latest)/pytest.xml [took 10s]
artifacts/Test Results (py310-ubuntu-latest)/pytest.xml [took 8s]
artifacts/Test Results (py311-macos-latest)/pytest.xml [took 6s]
artifacts/Test Results (py311-onnx-weekly-macos-latest)/pytest.xml [took 5s]
artifacts/Test Results (py311-onnx-weekly-ubuntu-latest)/pytest.xml [took 10s]
artifacts/Test Results (py311-ubuntu-latest)/pytest.xml [took 8s]
artifacts/Test Results (py39-macos-latest)/pytest.xml [took 6s]
artifacts/Test Results (py39-ubuntu-latest)/pytest.xml [took 7s]
Raw output
AssertionError: The length of the sequences mismatch: 1 != 4
onnxscript/_internal/version_utils.py:114: in call_f
return fct(self)
onnxscript/tools/transformers_models/phi_test.py:106: in test_phi_dort_static
torch.testing.assert_close(expected_gradients[0], gradients[0], atol=1e-5, rtol=1e-5)
E AssertionError: The length of the sequences mismatch: 1 != 4
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 2 runs failed: test_export2python_produces_correct_onnx_script_model_0104_test_bernoulli_double (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_bernoulli_double' (e=No module named 'tests.onnx_backend_test_code.test_bernoulli_double') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_bernoulli_double.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_bernoulli_double.py', current folder: D:\a\onnxscript\onnxscript
---- CONTENT --
import numpy
from onnx import TensorProto
from onnx.helper import make_tensor
from onnxscript import script, external_tensor
from onnxscript.values import Opset
from onnxscript.onnx_types import DOUBLE, FLOAT
from onnxscript.onnx_opset import opset15
@script()
def bck_test_bernoulli_double(x: FLOAT[10]) -> (DOUBLE[10]):
y = opset15.Bernoulli(x, dtype=11)
return y
onnxscript\backend\onnx_export_test.py:133: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.onnx_backend_test_code.test_bernoulli_double'
The above exception was the direct cause of the following exception:
.nox\test\lib\site-packages\parameterized\parameterized.py:620: in standalone_func
return func(*(a + p.args), **p.kwargs, **kw)
onnxscript\backend\onnx_export_test.py:267: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:135: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_bernoulli_double' (e=No module named 'tests.onnx_backend_test_code.test_bernoulli_double') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_bernoulli_double.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_bernoulli_double.py', current folder: D:\a\onnxscript\onnxscript
E ---- CONTENT --
E import numpy
E from onnx import TensorProto
E from onnx.helper import make_tensor
E from onnxscript import script, external_tensor
E from onnxscript.values import Opset
E from onnxscript.onnx_types import DOUBLE, FLOAT
E from onnxscript.onnx_opset import opset15
E
E @script()
E def bck_test_bernoulli_double(x: FLOAT[10]) -> (DOUBLE[10]):
E y = opset15.Bernoulli(x, dtype=11)
E return y
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 2 runs failed: test_export2python_produces_correct_onnx_script_model_0803_test_reduce_l1_do_not_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_l1_do_not_keepdims_example' (e=No module named 'tests.onnx_backend_test_code.test_reduce_l1_do_not_keepdims_example') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reduce_l1_do_not_keepdims_example.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reduce_l1_do_not_keepdims_example.py', current folder: D:\a\onnxscript\onnxscript
---- CONTENT --
import numpy
from onnx import TensorProto
from onnx.helper import make_tensor
from onnxscript import script, external_tensor
from onnxscript.values import Opset
from onnxscript.onnx_types import FLOAT, INT64
from onnxscript.onnx_opset import opset18
@script()
def bck_test_reduce_l1_do_not_keepdims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,2]):
reduced = opset18.ReduceL1(data, axes, keepdims=0)
return reduced
onnxscript\backend\onnx_export_test.py:133: in extract_functions
mod = importlib.import_module(import_name)
C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.onnx_backend_test_code.test_reduce_l1_do_not_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:267: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:135: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_reduce_l1_do_not_keepdims_example' (e=No module named 'tests.onnx_backend_test_code.test_reduce_l1_do_not_keepdims_example') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reduce_l1_do_not_keepdims_example.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reduce_l1_do_not_keepdims_example.py', current folder: D:\a\onnxscript\onnxscript
E ---- CONTENT --
E import numpy
E from onnx import TensorProto
E from onnx.helper import make_tensor
E from onnxscript import script, external_tensor
E from onnxscript.values import Opset
E from onnxscript.onnx_types import FLOAT, INT64
E from onnxscript.onnx_opset import opset18
E
E @script()
E def bck_test_reduce_l1_do_not_keepdims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,2]):
E reduced = opset18.ReduceL1(data, axes, keepdims=0)
E return reduced
Check warning on line 0 in onnxscript.backend.onnx_export_test.TestOnnxBackEnd
github-actions / Test Results
1 out of 2 runs failed: test_export2python_produces_correct_onnx_script_model_0906_test_reduce_sum_keepdims_example (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_reduce_sum_keepdims_example' (e=No module named 'tests.onnx_backend_test_code.test_reduce_sum_keepdims_example') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reduce_sum_keepdims_example.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reduce_sum_keepdims_example.py', current folder: D:\a\onnxscript\onnxscript
---- CONTENT --
import numpy
from onnx import TensorProto
from onnx.helper import make_tensor
from onnxscript import script, external_tensor
from onnxscript.values import Opset
from onnxscript.onnx_types import FLOAT, INT64
from onnxscript.onnx_opset import opset13
@script()
def bck_test_reduce_sum_keepdims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,1,2]):
reduced = opset13.ReduceSum(data, axes, keepdims=1)
return reduced
onnxscript\backend\onnx_export_test.py:133: 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_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:267: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:135: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_reduce_sum_keepdims_example' (e=No module named 'tests.onnx_backend_test_code.test_reduce_sum_keepdims_example') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reduce_sum_keepdims_example.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_reduce_sum_keepdims_example.py', current folder: D:\a\onnxscript\onnxscript
E ---- CONTENT --
E import numpy
E from onnx import TensorProto
E from onnx.helper import make_tensor
E from onnxscript import script, external_tensor
E from onnxscript.values import Opset
E from onnxscript.onnx_types import FLOAT, INT64
E from onnxscript.onnx_opset import opset13
E
E @script()
E def bck_test_reduce_sum_keepdims_example(data: FLOAT[3,2,2], axes: INT64[1]) -> (FLOAT[3,1,2]):
E reduced = opset13.ReduceSum(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 2 runs failed: test_export2python_produces_correct_onnx_script_model_0456_test_hardmax_axis_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_hardmax_axis_1' (e=No module named 'tests.onnx_backend_test_code.test_hardmax_axis_1') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_hardmax_axis_1.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_hardmax_axis_1.py', current folder: D:\a\onnxscript\onnxscript
---- CONTENT --
import numpy
from onnx import TensorProto
from onnx.helper import make_tensor
from onnxscript import script, external_tensor
from onnxscript.values import Opset
from onnxscript.onnx_types import FLOAT
from onnxscript.onnx_opset import opset13
@script()
def bck_test_hardmax_axis_1(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
y = opset13.Hardmax(x, axis=1)
return y
onnxscript\backend\onnx_export_test.py:133: 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_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:267: in test_export2python_produces_correct_onnx_script_model
functions = extract_functions(backend_test.name, code, self.test_folder)
onnxscript\backend\onnx_export_test.py:135: in extract_functions
raise AssertionError(
E AssertionError: Unable to import 'tests.onnx_backend_test_code.test_hardmax_axis_1' (e=No module named 'tests.onnx_backend_test_code.test_hardmax_axis_1') (file: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_hardmax_axis_1.py', absolute path: 'D:\\a\\onnxscript\\onnxscript\\tests\\onnx_backend_test_code\\test_hardmax_axis_1.py', current folder: D:\a\onnxscript\onnxscript
E ---- CONTENT --
E import numpy
E from onnx import TensorProto
E from onnx.helper import make_tensor
E from onnxscript import script, external_tensor
E from onnxscript.values import Opset
E from onnxscript.onnx_types import FLOAT
E from onnxscript.onnx_opset import opset13
E
E @script()
E def bck_test_hardmax_axis_1(x: FLOAT[3,4,5]) -> (FLOAT[3,4,5]):
E y = opset13.Hardmax(x, axis=1)
E return y