Skip to content

Conversation

@gramalingam
Copy link
Collaborator

This copilot-suggested fix enabled converting a recent onnx model to onnxscript.

Signed-off-by: Ganesan Ramalingam <[email protected]>
@codecov
Copy link

codecov bot commented Dec 26, 2025

❌ 68 Tests Failed:

Tests completed Failed Passed Skipped
8016 68 7948 936
View the full list of 68 ❄️ flaky test(s)
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0155_test_castlike_INT2_to_FLOAT_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0177_test_cast_FLOAT_to_INT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:799: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "output"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0180_test_cast_FLOAT_to_UINT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:799: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "output"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0261_test_cast_UINT2_to_UINT8_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0326_test_castlike_INT2_to_FLOAT_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.002s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0332_test_castlike_FLOAT16_to_INT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0333_test_castlike_FLOAT16_to_INT2_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0336_test_castlike_FLOAT16_to_UINT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0337_test_castlike_FLOAT16_to_UINT2_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0339_test_cast_FLOAT16_to_INT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:799: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "output"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0376_test_castlike_FLOAT_to_INT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0377_test_castlike_FLOAT_to_INT2_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0380_test_castlike_FLOAT_to_UINT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0381_test_castlike_FLOAT_to_UINT2_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.004s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0384_test_castlike_INT2_to_FLOAT_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0385_test_castlike_INT2_to_FLOAT16_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0386_test_castlike_INT2_to_FLOAT16_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0387_test_castlike_INT2_to_FLOAT_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0388_test_castlike_INT2_to_INT8_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0389_test_castlike_INT2_to_INT8_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.005s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0412_test_castlike_UINT2_to_FLOAT_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0413_test_castlike_UINT2_to_FLOAT16_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0414_test_castlike_UINT2_to_FLOAT16_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0415_test_castlike_UINT2_to_FLOAT_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0416_test_castlike_UINT2_to_UINT8_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0417_test_castlike_UINT2_to_UINT8_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0438_test_cast_FLOAT16_to_INT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:799: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "output"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0440_test_cast_FLOAT16_to_UINT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:799: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "output"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0460_test_cast_FLOAT_to_INT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:799: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "output"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0462_test_cast_FLOAT_to_UINT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.004s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:799: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "output"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0464_test_cast_INT2_to_FLOAT_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0465_test_cast_INT2_to_FLOAT16_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.004s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0466_test_cast_INT2_to_INT8_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0478_test_cast_UINT2_to_FLOAT_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0479_test_cast_UINT2_to_FLOAT16_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0480_test_cast_UINT2_to_UINT8_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0595_test_dequantizelinear_int2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.013s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 4
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "x"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 4
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0598_test_dequantizelinear_uint2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 4
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "x"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 4
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0679_test_castlike_UINT2_to_UINT8_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.002s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0715_test_cast_UINT2_to_FLOAT16_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0736_test_cast_INT2_to_FLOAT_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0752_test_castlike_FLOAT_to_INT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0753_test_quantizelinear_uint2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.004s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 3
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "y_zero_point"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 3
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0821_test_dequantizelinear_uint2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 4
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "x"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 4
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0879_test_castlike_UINT2_to_FLOAT16_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0907_test_castlike_FLOAT16_to_INT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0912_test_quantizelinear_int2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 3
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "y_zero_point"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 3
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0931_test_dequantizelinear_int2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 4
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "x"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 4
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0936_test_castlike_UINT2_to_FLOAT_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_0957_test_castlike_INT2_to_INT8_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1060_test_castlike_FLOAT16_to_UINT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.002s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1089_test_castlike_INT2_to_FLOAT16_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.002s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1112_test_cast_UINT2_to_FLOAT_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1131_test_quantizelinear_int2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.003s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 3
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "y_zero_point"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 3
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1134_test_quantizelinear_uint2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 191 times)

Stack Traces | 0.002s run time
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 3
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "y_zero_point"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 3
E         }
E       }
E     }
E   }

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)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\ir\serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.nox\test_torch_nightly\Lib\site-packages\onnx_ir\serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1281_test_castlike_INT2_to_INT8_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1317_test_castlike_FLOAT16_to_UINT2_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1351_test_cast_FLOAT16_to_UINT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:799: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "output"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1378_test_castlike_INT2_to_FLOAT16_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.002s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1393_test_castlike_FLOAT_to_UINT2_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.002s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1422_test_castlike_FLOAT16_to_INT2_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.002s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1529_test_cast_INT2_to_FLOAT16_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1561_test_castlike_UINT2_to_FLOAT16_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.002s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1578_test_castlike_UINT2_to_FLOAT_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1652_test_castlike_FLOAT_to_UINT2_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.002s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1716_test_castlike_FLOAT_to_INT2_expanded_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 0
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "like"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 0
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1784_test_castlike_UINT2_to_UINT8_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 25 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 25
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 25
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph
tests.ir.serde_roundtrip_test.SerdeTest::test_serialization_deserialization_produces_same_model_1785_test_cast_INT2_to_INT8_model_onnx

Flake rate in main: 100.00% (Passed 0 times, Failed 167 times)

Stack Traces | 0.001s run time
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:1026: in deserialize_type_proto_for_type
    return _core.TensorType(_enums.DataType(elem_type), denotation=denotation)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:714: in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
....../Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/enum.py:1137: in __new__
    raise ve_exc
E   ValueError: 26 is not a valid DataType

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:936: in deserialize_value_info_proto
    value.type = deserialize_type_proto_for_type(proto.type)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_type_proto_for_type with: tensor_type {
E     elem_type: 26
E     shape {
E       dim {
E         dim_value: 7
E       }
E       dim {
E         dim_value: 1
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:99: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:715: in _deserialize_graph
    deserialize_value_info_proto(info, value)
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling deserialize_value_info_proto with: name: "input"
E   type {
E     tensor_type {
E       elem_type: 26
E       shape {
E         dim {
E           dim_value: 7
E         }
E         dim {
E           dim_value: 1
E         }
E       }
E     }
E   }

The above exception was the direct cause of the following exception:
..../test_torch_nightly/lib/python3.11.../site-packages/parameterized/parameterized.py:620: in standalone_func
    return func(*(a + p.args), **p.kwargs, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/ir/serde_roundtrip_test.py:38: in test_serialization_deserialization_produces_same_model
    ir_model = ir.serde.deserialize_model(model)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:599: in deserialize_model
    graph = _deserialize_graph(proto.graph, [])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../test_torch_nightly/lib/python3.11............................../site-packages/onnx_ir/serde.py:101: in wrapper
    raise SerdeError(
E   onnx_ir.serde.SerdeError: Error calling _deserialize_graph with: main_graph

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

try:
return s.decode("utf-8")
except UnicodeDecodeError:
return s.decode("latin1") # or "cp1252" or other fallback
Copy link
Collaborator

@justinchuby justinchuby Dec 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have seen cases where the string attributes iare used to store binary data (e.g. in the custom Tokenizer op, even though this is invalid onnx). Is this trying to address those cases? If so, I would simply preserve the b-string to avoid accidental modifications.

Related: onnx/ir-py#184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants