From 9e043f686b52cfabca1a3c67376c410e81c12331 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Thu, 13 Oct 2022 13:59:34 +0100 Subject: Updating FULLY_CONNECTED tests for FP16 and accumulator types Signed-off-by: Jeremy Johnson Change-Id: Ib9321859566a8356e08626b4bcb109a19ec96e14 --- .../test.json | 199 +++++++++++++++++++++ 1 file changed, 199 insertions(+) create mode 100644 operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accfloat/test.json (limited to 'operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accfloat/test.json') diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accfloat/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accfloat/test.json new file mode 100644 index 000000000..b5888d7a6 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accfloat/test.json @@ -0,0 +1,199 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: -25, + weight_zp: 0, + accum_dtype: "FLOAT" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11 + ], + type: "FP16" + }, + { + name: "const-1", + shape: [ + 4, + 11 + ], + type: "FP16", + data: [ + 61, + 53, + 18, + 54, + 124, + 57, + 192, + 52, + 151, + 59, + 85, + 59, + 178, + 55, + 65, + 53, + 73, + 56, + 202, + 58, + 56, + 57, + 111, + 58, + 67, + 56, + 16, + 57, + 156, + 52, + 225, + 57, + 122, + 50, + 143, + 57, + 227, + 58, + 58, + 48, + 234, + 56, + 22, + 46, + 206, + 57, + 104, + 45, + 125, + 59, + 102, + 48, + 172, + 59, + 104, + 58, + 192, + 56, + 67, + 58, + 92, + 58, + 145, + 59, + 14, + 52, + 184, + 56, + 21, + 46, + 238, + 56, + 123, + 49, + 133, + 56, + 148, + 56, + 117, + 55, + 46, + 56, + 29, + 58, + 101, + 58, + 224, + 55 + ] + }, + { + name: "const-2", + shape: [ + 4 + ], + type: "FLOAT", + data: [ + 245, + 126, + 25, + 63, + 127, + 101, + 110, + 63, + 226, + 54, + 245, + 61, + 255, + 211, + 239, + 61 + ] + }, + { + name: "result-0", + shape: [ + 2, + 4 + ], + type: "FLOAT" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1