From fa4f26105f770ff21a26b31aa78067297e2312fa Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Mon, 22 May 2023 11:42:56 +0100 Subject: Update tests for one dimension of -1 in RESHAPE Signed-off-by: Jeremy Johnson Change-Id: Ia65988177fb6abece6dbaad5a0eb85e67741a67a --- .../Conformance-result-0.json | 665 --------------------- .../reshape_35x10_i16_perm0_rank5/desc.json | 24 - .../reshape_35x10_i16_perm0_rank5/input-0.json | 425 ------------- .../reshape_35x10_i16_perm0_rank5/test.json | 66 -- 4 files changed, 1180 deletions(-) delete mode 100644 operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/Conformance-result-0.json delete mode 100644 operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/desc.json delete mode 100644 operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/input-0.json delete mode 100644 operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/test.json (limited to 'operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5') diff --git a/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/Conformance-result-0.json b/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/Conformance-result-0.json deleted file mode 100644 index 57f75b347..000000000 --- a/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/Conformance-result-0.json +++ /dev/null @@ -1,665 +0,0 @@ -{ - "type": "int32", - "data": [ - [ - [ - [ - [ - -14022, - -19797, - 30433, - -19668, - -26589 - ] - ], - [ - [ - 11399, - 24071, - -24413, - 13621, - 2673 - ] - ], - [ - [ - 21628, - -24448, - 31188, - 7806, - 22423 - ] - ], - [ - [ - -9047, - 29057, - 8281, - -24450, - 27715 - ] - ], - [ - [ - 19384, - -13095, - 2993, - -7337, - 2850 - ] - ] - ], - [ - [ - [ - 30498, - 26143, - -18643, - 30920, - -4067 - ] - ], - [ - [ - 13424, - 17316, - -1119, - -2841, - -2858 - ] - ], - [ - [ - 23760, - -7449, - -14423, - -9071, - -19997 - ] - ], - [ - [ - -7111, - -25292, - -26886, - 14670, - -27694 - ] - ], - [ - [ - 4469, - 18341, - 14711, - -3535, - -20079 - ] - ] - ], - [ - [ - [ - 28225, - 21965, - 7354, - -27082, - -30463 - ] - ], - [ - [ - -12110, - -22445, - 23616, - -19280, - -14245 - ] - ], - [ - [ - 31177, - 20857, - -18435, - -7633, - 1032 - ] - ], - [ - [ - 10765, - 28585, - 24322, - 31273, - -30105 - ] - ], - [ - [ - -17278, - 4128, - -29550, - -9481, - -22702 - ] - ] - ], - [ - [ - [ - 28371, - -28618, - -23043, - -19981, - -23030 - ] - ], - [ - [ - 4493, - -8891, - 27030, - -15676, - 2439 - ] - ], - [ - [ - 10491, - 8256, - 19423, - -19539, - 488 - ] - ], - [ - [ - 19699, - 23790, - 7719, - 9954, - 23864 - ] - ], - [ - [ - 8183, - 29415, - -24407, - -9968, - -25417 - ] - ] - ], - [ - [ - [ - -26832, - -1839, - -17962, - -6085, - -4074 - ] - ], - [ - [ - 7924, - 29208, - 22897, - -7976, - -11431 - ] - ], - [ - [ - 17745, - -24665, - 2652, - -5046, - -20788 - ] - ], - [ - [ - 7631, - -11749, - -20605, - 10039, - -21352 - ] - ], - [ - [ - 11328, - -22146, - -4276, - 20184, - -17784 - ] - ] - ], - [ - [ - [ - 17539, - 14542, - 26388, - -21701, - 14097 - ] - ], - [ - [ - 28617, - 17237, - -20454, - 21113, - -25736 - ] - ], - [ - [ - 5822, - -155, - 2036, - 1281, - -30706 - ] - ], - [ - [ - 536, - 28622, - -4151, - -14621, - 32428 - ] - ], - [ - [ - -26281, - -900, - 825, - -1446, - 27638 - ] - ] - ], - [ - [ - [ - -5128, - 31018, - -28389, - 15331, - 6092 - ] - ], - [ - [ - -17004, - -17828, - 14396, - 9018, - 7285 - ] - ], - [ - [ - -29437, - 6414, - 31548, - -31633, - -2032 - ] - ], - [ - [ - -369, - 26001, - -14232, - -1602, - 14233 - ] - ], - [ - [ - -28815, - 19732, - 21116, - 14394, - 9711 - ] - ] - ], - [ - [ - [ - 16227, - 18465, - 26436, - -4708, - -2880 - ] - ], - [ - [ - 9039, - -20114, - 23345, - 17728, - 8589 - ] - ], - [ - [ - -12999, - -9983, - -4262, - 10651, - 18221 - ] - ], - [ - [ - 11262, - 28176, - 30185, - 13428, - -8460 - ] - ], - [ - [ - 6492, - -4910, - 8460, - 20455, - -8564 - ] - ] - ], - [ - [ - [ - 377, - -29778, - 15504, - -666, - -2641 - ] - ], - [ - [ - 2125, - -18646, - 6420, - 16069, - -9852 - ] - ], - [ - [ - -24173, - -7417, - -19754, - -8262, - 8311 - ] - ], - [ - [ - -25337, - 16205, - -18048, - 25866, - 15233 - ] - ], - [ - [ - -14904, - 4143, - -25512, - -26232, - 29887 - ] - ] - ], - [ - [ - [ - 19820, - -22648, - -14242, - -19814, - -6871 - ] - ], - [ - [ - -13676, - -11269, - 1926, - -20379, - 25088 - ] - ], - [ - [ - 14919, - 17075, - -21662, - 13641, - 22036 - ] - ], - [ - [ - -21288, - 16467, - -9327, - 18846, - -1416 - ] - ], - [ - [ - 19805, - -23107, - -7270, - -14849, - -16492 - ] - ] - ], - [ - [ - [ - -12562, - -7705, - -24427, - 13571, - 3292 - ] - ], - [ - [ - 21579, - 13436, - -23001, - -28185, - -5059 - ] - ], - [ - [ - -1238, - -17023, - 18494, - 5346, - 16252 - ] - ], - [ - [ - -25624, - 20648, - -19262, - -3393, - -3974 - ] - ], - [ - [ - 21008, - -14625, - -16991, - -10511, - -9122 - ] - ] - ], - [ - [ - [ - -20862, - -21211, - -17607, - -2131, - -10266 - ] - ], - [ - [ - -7074, - 14356, - -16979, - 26862, - 16500 - ] - ], - [ - [ - -21320, - -12200, - -20739, - -14890, - -8815 - ] - ], - [ - [ - -24190, - -31823, - -4010, - 13172, - -12913 - ] - ], - [ - [ - 23622, - -8568, - 26266, - -17302, - 2577 - ] - ] - ], - [ - [ - [ - 17246, - -28899, - 28180, - -8851, - -136 - ] - ], - [ - [ - 8417, - 9371, - -31217, - 24063, - 8100 - ] - ], - [ - [ - 32691, - -1867, - 7439, - -3863, - 25544 - ] - ], - [ - [ - 21783, - 26778, - 280, - 19100, - -9255 - ] - ], - [ - [ - -2561, - 17053, - -27450, - 13794, - -31733 - ] - ] - ], - [ - [ - [ - 5285, - -1495, - -2053, - -373, - -529 - ] - ], - [ - [ - -6072, - -3189, - 4467, - 17266, - 3418 - ] - ], - [ - [ - 9340, - 22060, - 32080, - -25648, - 13954 - ] - ], - [ - [ - -18011, - -19872, - 19202, - -28267, - 22795 - ] - ], - [ - [ - 17730, - 32428, - 11006, - 24439, - -25000 - ] - ] - ] - ] - ] -} \ No newline at end of file diff --git a/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/desc.json b/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/desc.json deleted file mode 100644 index 7b8f68902..000000000 --- a/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/desc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "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": 0, - "expected_failure": false, - "expected_result_file": [ - "Conformance-result-0.npy" - ], - "profile": [ - "tosa-bi", - "tosa-mi" - ] -} \ No newline at end of file diff --git a/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/input-0.json b/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/input-0.json deleted file mode 100644 index 8009b1b1b..000000000 --- a/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/input-0.json +++ /dev/null @@ -1,425 +0,0 @@ -{ - "type": "int32", - "data": [ - [ - -14022, - -19797, - 30433, - -19668, - -26589, - 11399, - 24071, - -24413, - 13621, - 2673 - ], - [ - 21628, - -24448, - 31188, - 7806, - 22423, - -9047, - 29057, - 8281, - -24450, - 27715 - ], - [ - 19384, - -13095, - 2993, - -7337, - 2850, - 30498, - 26143, - -18643, - 30920, - -4067 - ], - [ - 13424, - 17316, - -1119, - -2841, - -2858, - 23760, - -7449, - -14423, - -9071, - -19997 - ], - [ - -7111, - -25292, - -26886, - 14670, - -27694, - 4469, - 18341, - 14711, - -3535, - -20079 - ], - [ - 28225, - 21965, - 7354, - -27082, - -30463, - -12110, - -22445, - 23616, - -19280, - -14245 - ], - [ - 31177, - 20857, - -18435, - -7633, - 1032, - 10765, - 28585, - 24322, - 31273, - -30105 - ], - [ - -17278, - 4128, - -29550, - -9481, - -22702, - 28371, - -28618, - -23043, - -19981, - -23030 - ], - [ - 4493, - -8891, - 27030, - -15676, - 2439, - 10491, - 8256, - 19423, - -19539, - 488 - ], - [ - 19699, - 23790, - 7719, - 9954, - 23864, - 8183, - 29415, - -24407, - -9968, - -25417 - ], - [ - -26832, - -1839, - -17962, - -6085, - -4074, - 7924, - 29208, - 22897, - -7976, - -11431 - ], - [ - 17745, - -24665, - 2652, - -5046, - -20788, - 7631, - -11749, - -20605, - 10039, - -21352 - ], - [ - 11328, - -22146, - -4276, - 20184, - -17784, - 17539, - 14542, - 26388, - -21701, - 14097 - ], - [ - 28617, - 17237, - -20454, - 21113, - -25736, - 5822, - -155, - 2036, - 1281, - -30706 - ], - [ - 536, - 28622, - -4151, - -14621, - 32428, - -26281, - -900, - 825, - -1446, - 27638 - ], - [ - -5128, - 31018, - -28389, - 15331, - 6092, - -17004, - -17828, - 14396, - 9018, - 7285 - ], - [ - -29437, - 6414, - 31548, - -31633, - -2032, - -369, - 26001, - -14232, - -1602, - 14233 - ], - [ - -28815, - 19732, - 21116, - 14394, - 9711, - 16227, - 18465, - 26436, - -4708, - -2880 - ], - [ - 9039, - -20114, - 23345, - 17728, - 8589, - -12999, - -9983, - -4262, - 10651, - 18221 - ], - [ - 11262, - 28176, - 30185, - 13428, - -8460, - 6492, - -4910, - 8460, - 20455, - -8564 - ], - [ - 377, - -29778, - 15504, - -666, - -2641, - 2125, - -18646, - 6420, - 16069, - -9852 - ], - [ - -24173, - -7417, - -19754, - -8262, - 8311, - -25337, - 16205, - -18048, - 25866, - 15233 - ], - [ - -14904, - 4143, - -25512, - -26232, - 29887, - 19820, - -22648, - -14242, - -19814, - -6871 - ], - [ - -13676, - -11269, - 1926, - -20379, - 25088, - 14919, - 17075, - -21662, - 13641, - 22036 - ], - [ - -21288, - 16467, - -9327, - 18846, - -1416, - 19805, - -23107, - -7270, - -14849, - -16492 - ], - [ - -12562, - -7705, - -24427, - 13571, - 3292, - 21579, - 13436, - -23001, - -28185, - -5059 - ], - [ - -1238, - -17023, - 18494, - 5346, - 16252, - -25624, - 20648, - -19262, - -3393, - -3974 - ], - [ - 21008, - -14625, - -16991, - -10511, - -9122, - -20862, - -21211, - -17607, - -2131, - -10266 - ], - [ - -7074, - 14356, - -16979, - 26862, - 16500, - -21320, - -12200, - -20739, - -14890, - -8815 - ], - [ - -24190, - -31823, - -4010, - 13172, - -12913, - 23622, - -8568, - 26266, - -17302, - 2577 - ], - [ - 17246, - -28899, - 28180, - -8851, - -136, - 8417, - 9371, - -31217, - 24063, - 8100 - ], - [ - 32691, - -1867, - 7439, - -3863, - 25544, - 21783, - 26778, - 280, - 19100, - -9255 - ], - [ - -2561, - 17053, - -27450, - 13794, - -31733, - 5285, - -1495, - -2053, - -373, - -529 - ], - [ - -6072, - -3189, - 4467, - 17266, - 3418, - 9340, - 22060, - 32080, - -25648, - 13954 - ], - [ - -18011, - -19872, - 19202, - -28267, - 22795, - 17730, - 32428, - 11006, - 24439, - -25000 - ] - ] -} \ No newline at end of file diff --git a/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/test.json b/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/test.json deleted file mode 100644 index dc71bf755..000000000 --- a/operators/data_layout/reshape/reshape_35x10_i16_perm0_rank5/test.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - version: { - _major: 0, - _minor: 70, - _patch: 0, - _draft: true - }, - regions: [ - { - name: "main", - blocks: [ - { - name: "main", - operators: [ - { - op: "RESHAPE", - attribute_type: "ReshapeAttribute", - attribute: { - new_shape: [ - 1, - 14, - 5, - 1, - 5 - ] - }, - inputs: [ - "input-0" - ], - outputs: [ - "result-0" - ] - } - ], - tensors: [ - { - name: "input-0", - shape: [ - 35, - 10 - ], - type: "INT16" - }, - { - name: "result-0", - shape: [ - 1, - 14, - 5, - 1, - 5 - ], - type: "INT16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" - ] - } - ] - } - ] -} -- cgit v1.2.1