{ "tests": [ // concat 1D tensors { "name": "concat two float32 1D constant tensors of same shape along axis 0", "inputs": [ { "name": "input1", "shape": [12], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float32", "constant": true }, { "name": "input2", "shape": [12], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32", "constant": true } ], "axis": 0, "expected": { "name": "output", "shape": [24], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float32 1D tensors of same shape along axis 0", "inputs": [ { "name": "input1", "shape": [12], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float32" }, { "name": "input2", "shape": [12], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [24], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float16 1D tensors of same shape along axis 0", "inputs": [ { "name": "input1", "shape": [12], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float16" }, { "name": "input2", "shape": [12], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [24], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat three float32 1D tensors of different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [4], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507 ], "type": "float32" }, { "name": "input2", "shape": [8], "data": [ 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float32" }, { "name": "input3", "shape": [12], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [24], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat three float16 1D tensors of different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [4], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507 ], "type": "float16" }, { "name": "input2", "shape": [8], "data": [ 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float16" }, { "name": "input3", "shape": [12], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [24], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat four float32 1D tensors of same 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [6], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input2", "shape": [6], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float32" }, { "name": "input3", "shape": [6], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635 ], "type": "float32" }, { "name": "input4", "shape": [6], "data": [ 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [24], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat four float16 1D tensors of same 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [6], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input2", "shape": [6], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float16" }, { "name": "input3", "shape": [6], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635 ], "type": "float16" }, { "name": "input4", "shape": [6], "data": [ 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [24], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat four float32 1D tensors of different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [2], "data": [ -0.39444134019222243, 0.8619825316530809 ], "type": "float32" }, { "name": "input2", "shape": [4], "data": [ 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input3", "shape": [8], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976 ], "type": "float32" }, { "name": "input4", "shape": [10], "data": [ -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [24], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat four float16 1D tensors of different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [2], "data": [ -0.39444134019222243, 0.8619825316530809 ], "type": "float16" }, { "name": "input2", "shape": [4], "data": [ 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input3", "shape": [8], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976 ], "type": "float16" }, { "name": "input4", "shape": [10], "data": [ -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [24], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, // concat 2D tensors { "name": "concat two float32 2D tensors of same shape along axis 0", "inputs": [ { "name": "input1", "shape": [2, 6], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float32" }, { "name": "input2", "shape": [2, 6], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [4, 6], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float16 2D tensors of same shape along axis 0", "inputs": [ { "name": "input1", "shape": [2, 6], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float16" }, { "name": "input2", "shape": [2, 6], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [4, 6], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat two float32 2D tensors of same others dimensions except different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [1, 6], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input2", "shape": [3, 6], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [4, 6], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float16 2D tensors of same others dimensions except different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [1, 6], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input2", "shape": [3, 6], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [4, 6], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat four float32 2D tensors of same shape along axis 0", "inputs": [ { "name": "input1", "shape": [3, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input2", "shape": [3, 2], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float32" }, { "name": "input3", "shape": [3, 2], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635 ], "type": "float32" }, { "name": "input4", "shape": [3, 2], "data": [ 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [12, 2], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat four float16 2D tensors of same shape along axis 0", "inputs": [ { "name": "input1", "shape": [3, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input2", "shape": [3, 2], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float16" }, { "name": "input3", "shape": [3, 2], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635 ], "type": "float16" }, { "name": "input4", "shape": [3, 2], "data": [ 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [12, 2], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat two float32 2D tensors of same others dimensions except different 2nd dimension along axis 1", "inputs": [ { "name": "input1", "shape": [2, 10], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897 ], "type": "float32" }, { "name": "input2", "shape": [2, 2], "data": [ 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 1, "expected": { "name": "output", "shape": [2, 12], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, 0.5182055234909058, -0.8742017149925232, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float16 2D tensors of same others dimensions except different 2nd dimension along axis 1", "inputs": [ { "name": "input1", "shape": [2, 10], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897 ], "type": "float16" }, { "name": "input2", "shape": [2, 2], "data": [ 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 1, "expected": { "name": "output", "shape": [2, 12], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, 0.51806640625, -0.8740234375, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat three float32 2D tensors of same shape along axis 1", "inputs": [ { "name": "input1", "shape": [4, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932 ], "type": "float32" }, { "name": "input2", "shape": [4, 2], "data": [ -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873 ], "type": "float32" }, { "name": "input3", "shape": [4, 2], "data": [ -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 1, "expected": { "name": "output", "shape": [4, 6], "data": [ -0.3944413363933563, 0.861982524394989, -0.5945112705230713, -0.402848482131958, -0.7206121683120728, -0.7993468642234802, 0.337996244430542, -0.990639865398407, -0.9531654119491577, -0.6731740236282349, 0.6653800010681152, 0.03886038810014725, 0.576785683631897, 0.32276400923728943, 0.49189892411231995, -0.15864109992980957, 0.5182055234909058, -0.8742017149925232, -0.44735023379325867, 0.11028251051902771, -0.3418811559677124, -0.9158143401145935, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat three float16 2D tensors of same shape along axis 1", "inputs": [ { "name": "input1", "shape": [4, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932 ], "type": "float16" }, { "name": "input2", "shape": [4, 2], "data": [ -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873 ], "type": "float16" }, { "name": "input3", "shape": [4, 2], "data": [ -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 1, "expected": { "name": "output", "shape": [4, 6], "data": [ -0.39453125, 0.86181640625, -0.5947265625, -0.40283203125, -0.720703125, -0.79931640625, 0.337890625, -0.99072265625, -0.953125, -0.67333984375, 0.66552734375, 0.038848876953125, 0.57666015625, 0.32275390625, 0.491943359375, -0.15869140625, 0.51806640625, -0.8740234375, -0.447265625, 0.11029052734375, -0.341796875, -0.916015625, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat four float32 2D tensors of same others dimensions except different 2nd dimension along axis 1", "inputs": [ { "name": "input1", "shape": [3, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807 ], "type": "float32" }, { "name": "input2", "shape": [3, 2], "data": [ -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908 ], "type": "float32" }, { "name": "input3", "shape": [3, 2], "data": [ -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157 ], "type": "float32" }, { "name": "input4", "shape": [3, 3], "data": [ -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 1, "expected": { "name": "output", "shape": [3, 8], "data": [ -0.3944413363933563, -0.990639865398407, 0.576785683631897, -0.402848482131958, -0.9531654119491577, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.861982524394989, 0.32276400923728943, -0.44735023379325867, -0.6731740236282349, 0.49189892411231995, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, 0.337996244430542, 0.11028251051902771, -0.5945112705230713, -0.15864109992980957, -0.3418811559677124, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat four float16 2D tensors of same others dimensions except different 2nd dimension along axis 1", "inputs": [ { "name": "input1", "shape": [3, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807 ], "type": "float16" }, { "name": "input2", "shape": [3, 2], "data": [ -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908 ], "type": "float16" }, { "name": "input3", "shape": [3, 2], "data": [ -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157 ], "type": "float16" }, { "name": "input4", "shape": [3, 3], "data": [ -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 1, "expected": { "name": "output", "shape": [3, 8], "data": [ -0.39453125, -0.99072265625, 0.57666015625, -0.40283203125, -0.953125, -0.916015625, -0.720703125, -0.79931640625, 0.86181640625, 0.32275390625, -0.447265625, -0.67333984375, 0.491943359375, 0.66552734375, 0.038848876953125, 0.51806640625, 0.337890625, 0.11029052734375, -0.5947265625, -0.15869140625, -0.341796875, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, // concat 3D tensors { "name": "concat two float32 3D tensors of same others dimensions except different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [2, 1, 3], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input2", "shape": [6, 1, 3], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [8, 1, 3], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float16 3D tensors of same others dimensions except different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [2, 1, 3], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input2", "shape": [6, 1, 3], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [8, 1, 3], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat four float32 3D tensors of same others dimensions except different 2nd dimension along axis 1", "inputs": [ { "name": "input1", "shape": [3, 1, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807 ], "type": "float32" }, { "name": "input2", "shape": [3, 2, 1], "data": [ -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908 ], "type": "float32" }, { "name": "input3", "shape": [3, 2, 1], "data": [ -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157 ], "type": "float32" }, { "name": "input4", "shape": [3, 3, 1], "data": [ -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 1, "expected": { "name": "output", "shape": [3, 8, 1], "data": [ -0.3944413363933563, -0.990639865398407, 0.576785683631897, -0.402848482131958, -0.9531654119491577, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.861982524394989, 0.32276400923728943, -0.44735023379325867, -0.6731740236282349, 0.49189892411231995, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, 0.337996244430542, 0.11028251051902771, -0.5945112705230713, -0.15864109992980957, -0.3418811559677124, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat four float16 3D tensors of same others dimensions except different 2nd dimension along axis 1", "inputs": [ { "name": "input1", "shape": [3, 1, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807 ], "type": "float16" }, { "name": "input2", "shape": [3, 2, 1], "data": [ -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908 ], "type": "float16" }, { "name": "input3", "shape": [3, 2, 1], "data": [ -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157 ], "type": "float16" }, { "name": "input4", "shape": [3, 3, 1], "data": [ -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 1, "expected": { "name": "output", "shape": [3, 8, 1], "data": [ -0.39453125, -0.99072265625, 0.57666015625, -0.40283203125, -0.953125, -0.916015625, -0.720703125, -0.79931640625, 0.86181640625, 0.32275390625, -0.447265625, -0.67333984375, 0.491943359375, 0.66552734375, 0.038848876953125, 0.51806640625, 0.337890625, 0.11029052734375, -0.5947265625, -0.15869140625, -0.341796875, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat three float32 3D tensors of same shape along axis 2", "inputs": [ { "name": "input1", "shape": [2, 2, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932 ], "type": "float32" }, { "name": "input2", "shape": [2, 2, 2], "data": [ -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873 ], "type": "float32" }, { "name": "input3", "shape": [2, 2, 2], "data": [ -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 2, "expected": { "name": "output", "shape": [2, 2, 6], "data": [ -0.3944413363933563, 0.861982524394989, -0.5945112705230713, -0.402848482131958, -0.7206121683120728, -0.7993468642234802, 0.337996244430542, -0.990639865398407, -0.9531654119491577, -0.6731740236282349, 0.6653800010681152, 0.03886038810014725, 0.576785683631897, 0.32276400923728943, 0.49189892411231995, -0.15864109992980957, 0.5182055234909058, -0.8742017149925232, -0.44735023379325867, 0.11028251051902771, -0.3418811559677124, -0.9158143401145935, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat three float16 3D tensors of same shape along axis 2", "inputs": [ { "name": "input1", "shape": [2, 2, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932 ], "type": "float16" }, { "name": "input2", "shape": [2, 2, 2], "data": [ -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873 ], "type": "float16" }, { "name": "input3", "shape": [2, 2, 2], "data": [ -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 2, "expected": { "name": "output", "shape": [2, 2, 6], "data": [ -0.39453125, 0.86181640625, -0.5947265625, -0.40283203125, -0.720703125, -0.79931640625, 0.337890625, -0.99072265625, -0.953125, -0.67333984375, 0.66552734375, 0.038848876953125, 0.57666015625, 0.32275390625, 0.491943359375, -0.15869140625, 0.51806640625, -0.8740234375, -0.447265625, 0.11029052734375, -0.341796875, -0.916015625, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, // concat 4D tensors { "name": "concat two float32 4D tensors of same others dimensions except different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [1, 3, 1, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input2", "shape": [3, 3, 1, 2], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [4, 3, 1, 2], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float16 4D tensors of same others dimensions except different 1st dimension along axis 0", "inputs": [ { "name": "input1", "shape": [1, 3, 1, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input2", "shape": [3, 3, 1, 2], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [4, 3, 1, 2], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat three float32 4D tensors of same shape along axis 1", "inputs": [ { "name": "input1", "shape": [2, 2, 1, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932 ], "type": "float32" }, { "name": "input2", "shape": [2, 2, 1, 2], "data": [ -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873 ], "type": "float32" }, { "name": "input3", "shape": [2, 2, 1, 2], "data": [ -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 1, "expected": { "name": "output", "shape": [2, 6, 1, 2], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat three float16 4D tensors of same shape along axis 1", "inputs": [ { "name": "input1", "shape": [2, 2, 1, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932 ], "type": "float16" }, { "name": "input2", "shape": [2, 2, 1, 2], "data": [ -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873 ], "type": "float16" }, { "name": "input3", "shape": [2, 2, 1, 2], "data": [ -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 1, "expected": { "name": "output", "shape": [2, 6, 1, 2], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat three float32 4D tensors of same others dimensions except different 3rd dimension along axis 2", "inputs": [ { "name": "input1", "shape": [1, 2, 2, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507 ], "type": "float32" }, { "name": "input2", "shape": [1, 2, 8, 1], "data": [ 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897 ], "type": "float32" }, { "name": "input3", "shape": [1, 2, 2, 1], "data": [ 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 2, "expected": { "name": "output", "shape": [1, 2, 12, 1], "data": [ -0.3944413363933563, 0.861982524394989, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.5182055234909058, -0.8742017149925232, 0.337996244430542, -0.990639865398407, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat three float16 4D tensors of same others dimensions except different 3rd dimension along axis 2", "inputs": [ { "name": "input1", "shape": [1, 2, 2, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507 ], "type": "float16" }, { "name": "input2", "shape": [1, 2, 8, 1], "data": [ 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897 ], "type": "float16" }, { "name": "input3", "shape": [1, 2, 2, 1], "data": [ 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 2, "expected": { "name": "output", "shape": [1, 2, 12, 1], "data": [ -0.39453125, 0.86181640625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.51806640625, -0.8740234375, 0.337890625, -0.99072265625, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat four float32 4D tensors of same others dimensions except different 4th dimension along axis 3", "inputs": [ { "name": "input1", "shape": [1, 3, 1, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807 ], "type": "float32" }, { "name": "input2", "shape": [1, 3, 1, 1], "data": [ -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input3", "shape": [1, 3, 1, 2], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float32" }, { "name": "input4", "shape": [1, 3, 1, 4], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 3, "expected": { "name": "output", "shape": [1, 3, 1, 8], "data": [ -0.3944413363933563, -0.990639865398407, -0.44735023379325867, 0.11028251051902771, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, 0.861982524394989, 0.576785683631897, -0.5945112705230713, -0.402848482131958, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.337996244430542, 0.32276400923728943, -0.9531654119491577, -0.6731740236282349, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat four float16 4D tensors of same others dimensions except different 4th dimension along axis 3", "inputs": [ { "name": "input1", "shape": [1, 3, 1, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807 ], "type": "float16" }, { "name": "input2", "shape": [1, 3, 1, 1], "data": [ -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input3", "shape": [1, 3, 1, 2], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float16" }, { "name": "input4", "shape": [1, 3, 1, 4], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 3, "expected": { "name": "output", "shape": [1, 3, 1, 8], "data": [ -0.39453125, -0.99072265625, -0.447265625, 0.11029052734375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, 0.86181640625, 0.57666015625, -0.5947265625, -0.40283203125, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.337890625, 0.32275390625, -0.953125, -0.67333984375, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, // concat 5D tensors { "name": "concat four float32 5D tensors of same shape along axis 0", "inputs": [ { "name": "input1", "shape": [1, 2, 1, 1, 3], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input2", "shape": [1, 2, 1, 1, 3], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float32" }, { "name": "input3", "shape": [1, 2, 1, 1, 3], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635 ], "type": "float32" }, { "name": "input4", "shape":[1, 2, 1, 1, 3], "data": [ 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 0, "expected": { "name": "output", "shape": [4, 2, 1, 1, 3], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat four float16 5D tensors of same shape along axis 0", "inputs": [ { "name": "input1", "shape": [1, 2, 1, 1, 3], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input2", "shape": [1, 2, 1, 1, 3], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float16" }, { "name": "input3", "shape": [1, 2, 1, 1, 3], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635 ], "type": "float16" }, { "name": "input4", "shape":[1, 2, 1, 1, 3], "data": [ 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 0, "expected": { "name": "output", "shape": [4, 2, 1, 1, 3], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat two float32 5D tensors of same others dimensions except different 2nd dimension along axis 1", "inputs": [ { "name": "input1", "shape": [1, 2, 3, 1, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input2", "shape": [1, 6, 3, 1, 1], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 1, "expected": { "name": "output", "shape": [1, 8, 3, 1, 1], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float16 5D tensors of same others dimensions except different 2nd dimension along axis 1", "inputs": [ { "name": "input1", "shape": [1, 2, 3, 1, 1], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input2", "shape": [1, 6, 3, 1, 1], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 1, "expected": { "name": "output", "shape": [1, 8, 3, 1, 1], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat three float32 5D tensors of same others dimensions except different 3rd dimension along axis 2", "inputs": [ { "name": "input1", "shape": [1, 2, 1, 1, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507 ], "type": "float32" }, { "name": "input2", "shape": [1, 2, 2, 1, 2], "data": [ 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float32" }, { "name": "input3", "shape": [1, 2, 3, 1, 2], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 2, "expected": { "name": "output", "shape": [1, 2, 6, 1, 2], "data": [ -0.3944413363933563, 0.861982524394989, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.337996244430542, -0.990639865398407, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat three float16 5D tensors of same others dimensions except different 3rd dimension along axis 2", "inputs": [ { "name": "input1", "shape": [1, 2, 1, 1, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507 ], "type": "float16" }, { "name": "input2", "shape": [1, 2, 2, 1, 2], "data": [ 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844 ], "type": "float16" }, { "name": "input3", "shape": [1, 2, 3, 1, 2], "data": [ 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 2, "expected": { "name": "output", "shape": [1, 2, 6, 1, 2], "data": [ -0.39453125, 0.86181640625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.337890625, -0.99072265625, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat two float32 5D tensors of same others dimensions except different 4th dimension along axis 3", "inputs": [ { "name": "input1", "shape": [3, 1, 1, 1, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float32" }, { "name": "input2", "shape": [3, 1, 1, 3, 2], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 3, "expected": { "name": "output", "shape": [3, 1, 1, 4, 2], "data": [ -0.3944413363933563, 0.861982524394989, -0.44735023379325867, 0.11028251051902771, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.337996244430542, -0.990639865398407, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, -0.7206121683120728, -0.7993468642234802, 0.576785683631897, 0.32276400923728943, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float16 5D tensors of same others dimensions except different 4th dimension along axis 3", "inputs": [ { "name": "input1", "shape": [3, 1, 1, 1, 2], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237 ], "type": "float16" }, { "name": "input2", "shape": [3, 1, 1, 3, 2], "data": [ -0.44735022799701873, 0.11028251232581932, -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 3, "expected": { "name": "output", "shape": [3, 1, 1, 4, 2], "data": [ -0.39453125, 0.86181640625, -0.447265625, 0.11029052734375, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.337890625, -0.99072265625, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, -0.720703125, -0.79931640625, 0.57666015625, 0.32275390625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } }, { "name": "concat two float32 5D tensors of same others dimensions except different 5th dimension along axis 4", "inputs": [ { "name": "input1", "shape": [1, 2, 1, 1, 4], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932 ], "type": "float32" }, { "name": "input2", "shape": [1, 2, 1, 1, 8], "data": [ -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float32" } ], "axis": 4, "expected": { "name": "output", "shape": [1, 2, 1, 1, 12], "data": [ -0.3944413363933563, 0.861982524394989, 0.337996244430542, -0.990639865398407, -0.5945112705230713, -0.402848482131958, -0.9531654119491577, -0.6731740236282349, 0.49189892411231995, -0.15864109992980957, -0.3418811559677124, -0.9158143401145935, 0.576785683631897, 0.32276400923728943, -0.44735023379325867, 0.11028251051902771, -0.7206121683120728, -0.7993468642234802, 0.6653800010681152, 0.03886038810014725, 0.5182055234909058, -0.8742017149925232, -0.4790218770503998, 0.1211843192577362 ], "type": "float32" } }, { "name": "concat two float16 5D tensors of same others dimensions except different 5th dimension along axis 4", "inputs": [ { "name": "input1", "shape": [1, 2, 1, 1, 4], "data": [ -0.39444134019222243, 0.8619825316530809, 0.3379962524218807, -0.9906398615400507, 0.576785657225761, 0.3227640108329237, -0.44735022799701873, 0.11028251232581932 ], "type": "float16" }, { "name": "input2", "shape": [1, 2, 1, 1, 8], "data": [ -0.5945112749179908, -0.40284849555754754, -0.9531654171044694, -0.6731740531810844, 0.4918989118791477, -0.15864110312378976, -0.34188115459083157, -0.9158143500894873, -0.7206121708970712, -0.7993468785008635, 0.6653799854931952, 0.03886038855553897, 0.5182055416768865, -0.8742016938344297, -0.479021891130635, 0.1211843166661235 ], "type": "float16" } ], "axis": 4, "expected": { "name": "output", "shape": [1, 2, 1, 1, 12], "data": [ -0.39453125, 0.86181640625, 0.337890625, -0.99072265625, -0.5947265625, -0.40283203125, -0.953125, -0.67333984375, 0.491943359375, -0.15869140625, -0.341796875, -0.916015625, 0.57666015625, 0.32275390625, -0.447265625, 0.11029052734375, -0.720703125, -0.79931640625, 0.66552734375, 0.038848876953125, 0.51806640625, -0.8740234375, -0.47900390625, 0.12115478515625 ], "type": "float16" } } ] }