| { |
| "cases": [ |
| { |
| "name": "same_shape_vec4_nonzero", |
| "inputs": { |
| "a": { "dtype": "bool", "shape": [8], "data": { "kind": "values", "values": [0, 1, 1, 1, 0, 1, 1, 0] } }, |
| "b": { "dtype": "bool", "shape": [8], "data": { "kind": "values", "values": [0, 0, 1, 0, 1, 1, 0, 1] } } |
| }, |
| "outputs": { |
| "c": { |
| "dtype": "bool", |
| "shape": [8], |
| "tolerance": 0, |
| "data": { "kind": "values", "values": [0, 1, 0, 1, 1, 0, 1, 1] } |
| } |
| } |
| }, |
| { |
| "name": "broadcast", |
| "inputs": { |
| "a": { "dtype": "bool", "shape": [2, 3], "data": { "kind": "values", "values": [0, 1, 1, 0, 1, 0] } }, |
| "b": { "dtype": "bool", "shape": [3], "data": { "kind": "values", "values": [1, 0, 1] } } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [2, 3] } } |
| }, |
| { |
| "name": "rank0_nonzero_xor_nonzero_scalar_output", |
| "inputs": { |
| "a": { "dtype": "bool", "shape": [], "data": { "kind": "values", "values": [1] } }, |
| "b": { "dtype": "bool", "shape": [], "data": { "kind": "values", "values": [1] } } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [], "tolerance": 0 } } |
| }, |
| { |
| "name": "rank_mismatch_broadcast", |
| "inputs": { |
| "a": { "dtype": "bool", "shape": [2, 1, 3], "data": { "kind": "values", "values": [0, 1, 1, 1, 0, 1] } }, |
| "b": { "dtype": "bool", "shape": [3], "data": { "kind": "values", "values": [1, 0, 1] } } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [2, 1, 3], "tolerance": 0 } } |
| }, |
| { |
| "name": "zero_sized_broadcast", |
| "inputs": { |
| "a": { "dtype": "bool", "shape": [2, 0, 3], "data": { "kind": "values", "values": [] } }, |
| "b": { "dtype": "bool", "shape": [3], "data": { "kind": "values", "values": [1, 1, 0] } } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [2, 0, 3], "tolerance": 0 } } |
| }, |
| { |
| "name": "ort_bool_vector", |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc", |
| "test": "MathOpTest.Xor" |
| }, |
| "inputs": { |
| "a": { "dtype": "bool", "shape": [4], "data": { "kind": "values", "values": [0, 1, 0, 1] } }, |
| "b": { "dtype": "bool", "shape": [4], "data": { "kind": "values", "values": [0, 0, 1, 1] } } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [4], "tolerance": 0 } } |
| }, |
| { |
| "name": "ort_issue8880_singleton", |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc", |
| "test": "MathOpTest.Xor_Issue8880" |
| }, |
| "inputs": { |
| "a": { "dtype": "bool", "shape": [1], "data": { "kind": "values", "values": [1] } }, |
| "b": { "dtype": "bool", "shape": [1], "data": { "kind": "values", "values": [0] } } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [1], "tolerance": 0 } } |
| }, |
| { |
| "name": "ort_bcast3v2d", |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc", |
| "test": "MathOpTest.Xor_bcast3v2d" |
| }, |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [2, 3, 4], |
| "data": { |
| "kind": "values", |
| "values": [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1] |
| } |
| }, |
| "b": { |
| "dtype": "bool", |
| "shape": [3, 4], |
| "data": { "kind": "values", "values": [0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1] } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [2, 3, 4], "tolerance": 0 } } |
| }, |
| { |
| "name": "onnx_backend_2d_bool", |
| "provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_xor2d" }, |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [3, 4], |
| "data": { "kind": "values", "values": [1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1] } |
| }, |
| "b": { |
| "dtype": "bool", |
| "shape": [3, 4], |
| "data": { "kind": "values", "values": [1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0] } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [3, 4], "tolerance": 0 } } |
| }, |
| { |
| "name": "onnx_backend_xor_bcast3v1d", |
| "provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_xor_bcast3v1d" }, |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [3, 4, 5], |
| "data": { |
| "kind": "values", |
| "values": [1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0] |
| } |
| }, |
| "b": { "dtype": "bool", "shape": [5], "data": { "kind": "values", "values": [0, 0, 0, 0, 1] } } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [3, 4, 5], "tolerance": 0 } } |
| }, |
| { |
| "name": "onnx_backend_xor_bcast3v2d", |
| "provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_xor_bcast3v2d" }, |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [3, 4, 5], |
| "data": { |
| "kind": "values", |
| "values": [0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0] |
| } |
| }, |
| "b": { |
| "dtype": "bool", |
| "shape": [4, 5], |
| "data": { "kind": "values", "values": [0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1] } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [3, 4, 5], "tolerance": 0 } } |
| }, |
| { |
| "name": "onnx_backend_xor4d", |
| "provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_xor4d", "test": "test_xor4d" }, |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [3, 4, 5, 6], |
| "data": { |
| "kind": "values", |
| "values": [1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 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0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1] |
| } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [3, 4, 5, 6], "tolerance": 0 } } |
| }, |
| { |
| "name": "onnx_backend_xor_bcast4v2d", |
| "provenance": { |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_xor_bcast4v2d", |
| "test": "test_xor_bcast4v2d" |
| }, |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [3, 4, 5, 6], |
| "data": { |
| "kind": "values", |
| "values": [1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0] |
| } |
| }, |
| "b": { |
| "dtype": "bool", |
| "shape": [5, 6], |
| "data": { |
| "kind": "values", |
| "values": [0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0] |
| } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [3, 4, 5, 6], "tolerance": 0 } } |
| }, |
| { |
| "name": "onnx_backend_xor_bcast4v3d", |
| "provenance": { |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_xor_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 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0] |
| } |
| }, |
| "b": { |
| "dtype": "bool", |
| "shape": [4, 5, 6], |
| "data": { |
| "kind": "values", |
| "values": [1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0] |
| } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [3, 4, 5, 6], "tolerance": 0 } } |
| }, |
| { |
| "name": "onnx_backend_xor_bcast4v4d", |
| "provenance": { |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_xor_bcast4v4d", |
| "test": "test_xor_bcast4v4d" |
| }, |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [1, 4, 1, 6], |
| "data": { |
| "kind": "values", |
| "values": [0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1] |
| } |
| }, |
| "b": { |
| "dtype": "bool", |
| "shape": [3, 1, 5, 6], |
| "data": { |
| "kind": "values", |
| "values": [0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0] |
| } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [3, 4, 5, 6], "tolerance": 0 } } |
| }, |
| { |
| "name": "onnx_backend_xor3d", |
| "provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_xor3d" }, |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [3, 4, 5], |
| "data": { |
| "kind": "values", |
| "values": [1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0] |
| } |
| }, |
| "b": { |
| "dtype": "bool", |
| "shape": [3, 4, 5], |
| "data": { |
| "kind": "values", |
| "values": [1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1] |
| } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [3, 4, 5], "tolerance": 0 } } |
| }, |
| { |
| "name": "same_shape_numel_not_div4", |
| "inputs": { |
| "a": { "dtype": "bool", "shape": [9], "data": { "kind": "values", "values": [0, 1, 1, 0, 1, 0, 1, 1, 0] } }, |
| "b": { "dtype": "bool", "shape": [9], "data": { "kind": "values", "values": [0, 0, 1, 1, 0, 1, 0, 1, 1] } } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [9], "tolerance": 0 } } |
| }, |
| { |
| "name": "xor_self_identity_zero", |
| "inputs": { |
| "a": { "dtype": "bool", "shape": [6], "data": { "kind": "values", "values": [1, 1, 1, 1, 1, 1] } }, |
| "b": { "dtype": "bool", "shape": [6], "data": { "kind": "values", "values": [1, 1, 1, 1, 1, 1] } } |
| }, |
| "outputs": { |
| "c": { |
| "dtype": "bool", |
| "shape": [6], |
| "tolerance": 0, |
| "data": { "kind": "values", "values": [0, 0, 0, 0, 0, 0] } |
| } |
| } |
| }, |
| { |
| "name": "rank7_broadcast", |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [2, 1, 2, 1, 2, 1, 2], |
| "data": { "kind": "cycle", "values": [0, 1, 0, 1, 0, 0, 1, 1] } |
| }, |
| "b": { |
| "dtype": "bool", |
| "shape": [1, 2, 1, 2, 1, 2, 1], |
| "data": { "kind": "cycle", "values": [1, 0, 1, 0, 1, 1, 0, 0] } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [2, 2, 2, 2, 2, 2, 2], "tolerance": 0 } } |
| }, |
| { |
| "name": "rank8_broadcast_alternating", |
| "inputs": { |
| "a": { |
| "dtype": "bool", |
| "shape": [2, 1, 2, 1, 2, 1, 2, 1], |
| "data": { "kind": "cycle", "values": [0, 1, 0, 1, 0, 0, 1, 1] } |
| }, |
| "b": { |
| "dtype": "bool", |
| "shape": [1, 2, 1, 2, 1, 2, 1, 2], |
| "data": { "kind": "cycle", "values": [1, 0, 1, 0, 1, 1, 0, 0] } |
| } |
| }, |
| "outputs": { "c": { "dtype": "bool", "shape": [2, 2, 2, 2, 2, 2, 2, 2], "tolerance": 0 } } |
| } |
| ] |
| } |
|
|