| { |
| "tests": [ |
| { |
| "name": "equal float32 0D scalar", |
| "inputs": { |
| "a": { |
| "shape": [], |
| "data": [ |
| -0.6285496901988363 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [], |
| "data": [ |
| -4.416641209564136 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [], |
| "data": [ |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 1D tensors", |
| "inputs": { |
| "a": { |
| "shape": [24], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [24], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| -4.839719707803649, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -6.173707599765419, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 7.767369675510874, |
| -4.308908126069415, |
| -5.895479626582176, |
| -8.532091541161986, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 0.17833953390240076, |
| -4.479541639848148, |
| 0.6819732148052395, |
| -6.687512654244134, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -9.041799605912026, |
| -1.972828107164485, |
| -3.011512276155144, |
| 3.6268343183100704 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [24], |
| "data": [ |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 2D tensors", |
| "inputs": { |
| "a": { |
| "shape": [4, 6], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [4, 6], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| -4.839719707803649, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -6.173707599765419, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 7.767369675510874, |
| -4.308908126069415, |
| -5.895479626582176, |
| -8.532091541161986, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 0.17833953390240076, |
| -4.479541639848148, |
| 0.6819732148052395, |
| -6.687512654244134, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -9.041799605912026, |
| -1.972828107164485, |
| -3.011512276155144, |
| 3.6268343183100704 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [4, 6], |
| "data": [ |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 3D tensors", |
| "inputs": { |
| "a": { |
| "shape": [2, 3, 4], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [2, 3, 4], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| -4.839719707803649, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -6.173707599765419, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 7.767369675510874, |
| -4.308908126069415, |
| -5.895479626582176, |
| -8.532091541161986, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 0.17833953390240076, |
| -4.479541639848148, |
| 0.6819732148052395, |
| -6.687512654244134, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -9.041799605912026, |
| -1.972828107164485, |
| -3.011512276155144, |
| 3.6268343183100704 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [2, 3, 4], |
| "data": [ |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 4D tensors", |
| "inputs": { |
| "a": { |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| -4.839719707803649, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -6.173707599765419, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 7.767369675510874, |
| -4.308908126069415, |
| -5.895479626582176, |
| -8.532091541161986, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 0.17833953390240076, |
| -4.479541639848148, |
| 0.6819732148052395, |
| -6.687512654244134, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -9.041799605912026, |
| -1.972828107164485, |
| -3.011512276155144, |
| 3.6268343183100704 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 5D tensors", |
| "inputs": { |
| "a": { |
| "shape": [2, 2, 1, 2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [2, 2, 1, 2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| -4.839719707803649, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -6.173707599765419, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 7.767369675510874, |
| -4.308908126069415, |
| -5.895479626582176, |
| -8.532091541161986, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 0.17833953390240076, |
| -4.479541639848148, |
| 0.6819732148052395, |
| -6.687512654244134, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -9.041799605912026, |
| -1.972828107164485, |
| -3.011512276155144, |
| 3.6268343183100704 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [2, 2, 1, 2, 3], |
| "data": [ |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 broadcast 0D to 4D", |
| "inputs": { |
| "a": { |
| "shape": [], |
| "data": [ |
| 2.8057064434130865 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 broadcast 1D to 4D", |
| "inputs": { |
| "a": { |
| "shape": [1], |
| "data": [ |
| 2.8057064434130865 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 broadcast 2D to 4D", |
| "inputs": { |
| "a": { |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| -4.9622954777657835, |
| -2.863192149827909, |
| -3.011512276155144, |
| 3.6268343183100704 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 broadcast 3D to 4D", |
| "inputs": { |
| "a": { |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [2, 2, 1], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| -9.041799605912026, |
| 3.6268343183100704 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| }, |
| { |
| "name": "equal float32 broadcast 4D to 4D", |
| "inputs": { |
| "a": { |
| "shape": [1, 1, 1, 1], |
| "data": [ |
| 2.8057064434130865 |
| ], |
| "type": "float32" |
| }, |
| "b": { |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 2.8057064434130865, |
| 5.588105051769192, |
| 2.8552264057573318, |
| 4.996258886261531, |
| 0.9727277518275201, |
| -4.7425998673234115, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -5.107602083264831, |
| 6.62414218944782, |
| -2.320724650141428, |
| -7.053896009779472, |
| 2.8057064434130865, |
| 5.588105051769192, |
| 4.980423911313675, |
| -5.440841218751173, |
| 1.1459590058073985, |
| 7.774532655736756, |
| 2.8057064434130865, |
| 5.588105051769192, |
| -6.245251018074902, |
| -2.849073058101119, |
| -2.6951117252164236, |
| 5.8175630540970715 |
| ], |
| "type": "float32" |
| } |
| }, |
| "expected": { |
| "name": "output", |
| "shape": [2, 2, 2, 3], |
| "data": [ |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 1, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0 |
| ], |
| "type": "uint8" |
| } |
| } |
| ] |
| } |