aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1
diff options
context:
space:
mode:
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1')
-rw-r--r--operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/desc.json22
-rw-r--r--operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/input-0.json159
-rw-r--r--operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/test.json64
3 files changed, 245 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/desc.json b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/desc.json
new file mode 100644
index 000000000..6a61ccfd5
--- /dev/null
+++ b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/desc.json
@@ -0,0 +1,22 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0"
+ ],
+ "ifm_file": [
+ "input-0.npy"
+ ],
+ "ofm_name": [
+ "result-0"
+ ],
+ "ofm_file": [
+ "result-0.npy"
+ ],
+ "expected_return_code": 2,
+ "expected_failure": true,
+ "expected_failure_desc": "Size does not match output dimension",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/input-0.json b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/input-0.json
new file mode 100644
index 000000000..8b4795973
--- /dev/null
+++ b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/input-0.json
@@ -0,0 +1,159 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ 0.3653683364391327,
+ 0.4841671884059906,
+ 0.3380630612373352,
+ 0.8493863940238953,
+ 0.3088829219341278,
+ 0.23831121623516083,
+ 0.21434615552425385,
+ 0.40116262435913086,
+ 0.6229682564735413,
+ 0.8316488265991211,
+ 0.9247075915336609,
+ 0.0800873190164566
+ ],
+ [
+ 0.04718879982829094,
+ 0.36273500323295593,
+ 0.8101033568382263,
+ 0.9074029326438904,
+ 0.16845087707042694,
+ 0.28575971722602844,
+ 0.9019617438316345,
+ 0.5758163332939148,
+ 0.40769630670547485,
+ 0.2435348629951477,
+ 0.11289516091346741,
+ 0.10844937711954117
+ ],
+ [
+ 0.6740742325782776,
+ 0.7204142808914185,
+ 0.36568450927734375,
+ 0.6060002446174622,
+ 0.15603460371494293,
+ 0.020953578874468803,
+ 0.09982584416866302,
+ 0.10586044192314148,
+ 0.9847705960273743,
+ 0.23601363599300385,
+ 0.13412460684776306,
+ 0.7953869104385376
+ ],
+ [
+ 0.36666011810302734,
+ 0.20626087486743927,
+ 0.22037334740161896,
+ 0.1390382945537567,
+ 0.07990537583827972,
+ 0.6801360845565796,
+ 0.4399833381175995,
+ 0.1484396606683731,
+ 0.7924453616142273,
+ 0.019125089049339294,
+ 0.4306378662586212,
+ 0.1273055225610733
+ ],
+ [
+ 0.027771227061748505,
+ 0.5506622791290283,
+ 0.15543301403522491,
+ 0.06851742416620255,
+ 0.47877204418182373,
+ 0.8436360955238342,
+ 0.4856288433074951,
+ 0.0796542763710022,
+ 0.30435678362846375,
+ 0.44609251618385315,
+ 0.2811557650566101,
+ 0.33753645420074463
+ ],
+ [
+ 0.5001682639122009,
+ 0.9424700140953064,
+ 0.8048499226570129,
+ 0.2043764293193817,
+ 0.7852583527565002,
+ 0.3945445418357849,
+ 0.8157162070274353,
+ 0.6171071529388428,
+ 0.6789842844009399,
+ 0.362102210521698,
+ 0.7131916284561157,
+ 0.5656903386116028
+ ],
+ [
+ 0.618571937084198,
+ 0.5470450520515442,
+ 0.05579068139195442,
+ 0.47424769401550293,
+ 0.051255661994218826,
+ 0.16850130259990692,
+ 0.47559231519699097,
+ 0.4061743915081024,
+ 0.04793693125247955,
+ 0.13722483813762665,
+ 0.465293824672699,
+ 0.9676595330238342
+ ],
+ [
+ 0.48639586567878723,
+ 0.7725535035133362,
+ 0.44305819272994995,
+ 0.19172482192516327,
+ 0.021182112395763397,
+ 0.37549304962158203,
+ 0.9194912314414978,
+ 0.32482460141181946,
+ 0.3685273826122284,
+ 0.6927195191383362,
+ 0.7369128465652466,
+ 0.6083845496177673
+ ],
+ [
+ 0.33822742104530334,
+ 0.9452558755874634,
+ 0.35251039266586304,
+ 0.29200980067253113,
+ 0.8431596755981445,
+ 0.9352221488952637,
+ 0.9565632939338684,
+ 0.5332182049751282,
+ 0.8694913983345032,
+ 0.18371017277240753,
+ 0.8889991044998169,
+ 0.7581918239593506
+ ],
+ [
+ 0.39918723702430725,
+ 0.24518445134162903,
+ 0.7596498131752014,
+ 0.43058499693870544,
+ 0.9786154627799988,
+ 0.8546002507209778,
+ 0.790431022644043,
+ 0.33379217982292175,
+ 0.7116517424583435,
+ 0.7559248805046082,
+ 0.40944814682006836,
+ 0.09458398073911667
+ ],
+ [
+ 0.7352837324142456,
+ 0.29446592926979065,
+ 0.13276198506355286,
+ 0.04268288239836693,
+ 0.3272579610347748,
+ 0.5099431872367859,
+ 0.03839627280831337,
+ 0.563401460647583,
+ 0.895386815071106,
+ 0.597923755645752,
+ 0.5245871543884277,
+ 0.2322653830051422
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/test.json b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/test.json
new file mode 100644
index 000000000..9065e723b
--- /dev/null
+++ b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_11x12_f32_perm1/test.json
@@ -0,0 +1,64 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "SLICE",
+ attribute_type: "SliceAttribute",
+ attribute: {
+ start: [
+ 9,
+ 8
+ ],
+ size: [
+ 1,
+ 1
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 11,
+ 12
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 3,
+ 2
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}