HELLO·Android
系统源代码
IT资讯
技术文章
我的收藏
注册
登录
-
我收藏的文章
创建代码块
我的代码块
我的账号
Android 10
|
10.0.0_r6
下载
查看原文件
收藏
根目录
frameworks
ml
nn
runtime
test
generated
examples
transpose_conv2d.example.cpp
// clang-format off // Generated file (from: transpose_conv2d.mod.py). Do not edit std::vector
& get_examples_nhwc_none() { static std::vector
examples_nhwc_none = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none; }; std::vector
& get_examples_nhwc_none_weight_as_input() { static std::vector
examples_nhwc_none_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_weight_as_input; }; std::vector
& get_examples_nhwc_none_relaxed() { static std::vector
examples_nhwc_none_relaxed = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_relaxed; }; std::vector
& get_examples_nhwc_none_relaxed_weight_as_input() { static std::vector
examples_nhwc_none_relaxed_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_relaxed_weight_as_input; }; std::vector
& get_examples_nhwc_none_quant8() { static std::vector
examples_nhwc_none_quant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 3, 4, 11, 16, 9, 12, 17, 20, 11, 12, 15, 16, 47, 52, 33, 36, 41, 44, 29, 36, 45, 52, 121, 140, 81, 92, 105, 116, 39, 44, 51, 56, 119, 132, 69, 76, 85, 92, 75, 80, 87, 92, 203, 216, 117, 124, 133, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_quant8; }; std::vector
& get_examples_nhwc_none_quant8_weight_as_input() { static std::vector
examples_nhwc_none_quant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}, {1, {2, 6, 10, 14, 18, 22, 26, 30, 34, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 3, 4, 11, 16, 9, 12, 17, 20, 11, 12, 15, 16, 47, 52, 33, 36, 41, 44, 29, 36, 45, 52, 121, 140, 81, 92, 105, 116, 39, 44, 51, 56, 119, 132, 69, 76, 85, 92, 75, 80, 87, 92, 203, 216, 117, 124, 133, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_quant8_weight_as_input; }; std::vector
& get_examples_nhwc_none_quant8_2() { static std::vector
examples_nhwc_none_quant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_quant8_2; }; std::vector
& get_examples_nhwc_none_quant8_weight_as_input_2() { static std::vector
examples_nhwc_none_quant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}, {1, {130, 134, 138, 142, 146, 150, 154, 158, 162, 132, 136, 140, 144, 148, 152, 156, 160, 164}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_quant8_weight_as_input_2; }; std::vector
& get_examples_nhwc_none_channelQuant8() { static std::vector
examples_nhwc_none_channelQuant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 80, 83, 84, 91, 96, 89, 92, 97, 100, 91, 92, 95, 96, 127, 132, 113, 116, 121, 124, 109, 116, 125, 132, 201, 220, 161, 172, 185, 196, 119, 124, 131, 136, 199, 212, 149, 156, 165, 172, 155, 160, 167, 172, 255, 255, 197, 204, 213, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_channelQuant8; }; std::vector
& get_examples_nhwc_none_channelQuant8_weight_as_input() { static std::vector
examples_nhwc_none_channelQuant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 80, 83, 84, 91, 96, 89, 92, 97, 100, 91, 92, 95, 96, 127, 132, 113, 116, 121, 124, 109, 116, 125, 132, 201, 220, 161, 172, 185, 196, 119, 124, 131, 136, 199, 212, 149, 156, 165, 172, 155, 160, 167, 172, 255, 255, 197, 204, 213, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_channelQuant8_weight_as_input; }; std::vector
& get_examples_nhwc_none_channelQuant8_2() { static std::vector
examples_nhwc_none_channelQuant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_channelQuant8_2; }; std::vector
& get_examples_nhwc_none_channelQuant8_weight_as_input_2() { static std::vector
examples_nhwc_none_channelQuant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_channelQuant8_weight_as_input_2; }; std::vector
& get_examples_nhwc_none_float16() { static std::vector
examples_nhwc_none_float16 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_float16; }; std::vector
& get_examples_nhwc_none_float16_weight_as_input() { static std::vector
examples_nhwc_none_float16_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_none_float16_weight_as_input; }; std::vector
& get_examples_nhwc_relu() { static std::vector
examples_nhwc_relu = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu; }; std::vector
& get_examples_nhwc_relu_weight_as_input() { static std::vector
examples_nhwc_relu_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_weight_as_input; }; std::vector
& get_examples_nhwc_relu_relaxed() { static std::vector
examples_nhwc_relu_relaxed = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_relaxed; }; std::vector
& get_examples_nhwc_relu_relaxed_weight_as_input() { static std::vector
examples_nhwc_relu_relaxed_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_relaxed_weight_as_input; }; std::vector
& get_examples_nhwc_relu_quant8() { static std::vector
examples_nhwc_relu_quant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 3, 4, 11, 16, 9, 12, 17, 20, 11, 12, 15, 16, 47, 52, 33, 36, 41, 44, 29, 36, 45, 52, 121, 140, 81, 92, 105, 116, 39, 44, 51, 56, 119, 132, 69, 76, 85, 92, 75, 80, 87, 92, 203, 216, 117, 124, 133, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_quant8; }; std::vector
& get_examples_nhwc_relu_quant8_weight_as_input() { static std::vector
examples_nhwc_relu_quant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}, {1, {2, 6, 10, 14, 18, 22, 26, 30, 34, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 3, 4, 11, 16, 9, 12, 17, 20, 11, 12, 15, 16, 47, 52, 33, 36, 41, 44, 29, 36, 45, 52, 121, 140, 81, 92, 105, 116, 39, 44, 51, 56, 119, 132, 69, 76, 85, 92, 75, 80, 87, 92, 203, 216, 117, 124, 133, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_quant8_weight_as_input; }; std::vector
& get_examples_nhwc_relu_quant8_2() { static std::vector
examples_nhwc_relu_quant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_quant8_2; }; std::vector
& get_examples_nhwc_relu_quant8_weight_as_input_2() { static std::vector
examples_nhwc_relu_quant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}, {1, {130, 134, 138, 142, 146, 150, 154, 158, 162, 132, 136, 140, 144, 148, 152, 156, 160, 164}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_quant8_weight_as_input_2; }; std::vector
& get_examples_nhwc_relu_channelQuant8() { static std::vector
examples_nhwc_relu_channelQuant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 83, 84, 91, 96, 89, 92, 97, 100, 91, 92, 95, 96, 127, 132, 113, 116, 121, 124, 109, 116, 125, 132, 201, 220, 161, 172, 185, 196, 119, 124, 131, 136, 199, 212, 149, 156, 165, 172, 155, 160, 167, 172, 255, 255, 197, 204, 213, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_channelQuant8; }; std::vector
& get_examples_nhwc_relu_channelQuant8_weight_as_input() { static std::vector
examples_nhwc_relu_channelQuant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 83, 84, 91, 96, 89, 92, 97, 100, 91, 92, 95, 96, 127, 132, 113, 116, 121, 124, 109, 116, 125, 132, 201, 220, 161, 172, 185, 196, 119, 124, 131, 136, 199, 212, 149, 156, 165, 172, 155, 160, 167, 172, 255, 255, 197, 204, 213, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_channelQuant8_weight_as_input; }; std::vector
& get_examples_nhwc_relu_channelQuant8_2() { static std::vector
examples_nhwc_relu_channelQuant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_channelQuant8_2; }; std::vector
& get_examples_nhwc_relu_channelQuant8_weight_as_input_2() { static std::vector
examples_nhwc_relu_channelQuant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_channelQuant8_weight_as_input_2; }; std::vector
& get_examples_nhwc_relu_float16() { static std::vector
examples_nhwc_relu_float16 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_float16; }; std::vector
& get_examples_nhwc_relu_float16_weight_as_input() { static std::vector
examples_nhwc_relu_float16_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu_float16_weight_as_input; }; std::vector
& get_examples_nhwc_relu1() { static std::vector
examples_nhwc_relu1 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1; }; std::vector
& get_examples_nhwc_relu1_weight_as_input() { static std::vector
examples_nhwc_relu1_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_weight_as_input; }; std::vector
& get_examples_nhwc_relu1_relaxed() { static std::vector
examples_nhwc_relu1_relaxed = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_relaxed; }; std::vector
& get_examples_nhwc_relu1_relaxed_weight_as_input() { static std::vector
examples_nhwc_relu1_relaxed_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_relaxed_weight_as_input; }; std::vector
& get_examples_nhwc_relu1_quant8() { static std::vector
examples_nhwc_relu1_quant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_quant8; }; std::vector
& get_examples_nhwc_relu1_quant8_weight_as_input() { static std::vector
examples_nhwc_relu1_quant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}, {1, {2, 6, 10, 14, 18, 22, 26, 30, 34, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_quant8_weight_as_input; }; std::vector
& get_examples_nhwc_relu1_quant8_2() { static std::vector
examples_nhwc_relu1_quant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_quant8_2; }; std::vector
& get_examples_nhwc_relu1_quant8_weight_as_input_2() { static std::vector
examples_nhwc_relu1_quant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}, {1, {130, 134, 138, 142, 146, 150, 154, 158, 162, 132, 136, 140, 144, 148, 152, 156, 160, 164}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_quant8_weight_as_input_2; }; std::vector
& get_examples_nhwc_relu1_channelQuant8() { static std::vector
examples_nhwc_relu1_channelQuant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 80, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_channelQuant8; }; std::vector
& get_examples_nhwc_relu1_channelQuant8_weight_as_input() { static std::vector
examples_nhwc_relu1_channelQuant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 80, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_channelQuant8_weight_as_input; }; std::vector
& get_examples_nhwc_relu1_channelQuant8_2() { static std::vector
examples_nhwc_relu1_channelQuant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_channelQuant8_2; }; std::vector
& get_examples_nhwc_relu1_channelQuant8_weight_as_input_2() { static std::vector
examples_nhwc_relu1_channelQuant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_channelQuant8_weight_as_input_2; }; std::vector
& get_examples_nhwc_relu1_float16() { static std::vector
examples_nhwc_relu1_float16 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_float16; }; std::vector
& get_examples_nhwc_relu1_float16_weight_as_input() { static std::vector
examples_nhwc_relu1_float16_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu1_float16_weight_as_input; }; std::vector
& get_examples_nhwc_relu6() { static std::vector
examples_nhwc_relu6 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 6.0f, 4.5f, 6.0f, 6.0f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6; }; std::vector
& get_examples_nhwc_relu6_weight_as_input() { static std::vector
examples_nhwc_relu6_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 6.0f, 4.5f, 6.0f, 6.0f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_weight_as_input; }; std::vector
& get_examples_nhwc_relu6_relaxed() { static std::vector
examples_nhwc_relu6_relaxed = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 6.0f, 4.5f, 6.0f, 6.0f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_relaxed; }; std::vector
& get_examples_nhwc_relu6_relaxed_weight_as_input() { static std::vector
examples_nhwc_relu6_relaxed_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 6.0f, 4.5f, 6.0f, 6.0f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_relaxed_weight_as_input; }; std::vector
& get_examples_nhwc_relu6_quant8() { static std::vector
examples_nhwc_relu6_quant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 3, 4, 11, 12, 9, 12, 12, 12, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_quant8; }; std::vector
& get_examples_nhwc_relu6_quant8_weight_as_input() { static std::vector
examples_nhwc_relu6_quant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}, {1, {2, 6, 10, 14, 18, 22, 26, 30, 34, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 3, 4, 11, 12, 9, 12, 12, 12, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_quant8_weight_as_input; }; std::vector
& get_examples_nhwc_relu6_quant8_2() { static std::vector
examples_nhwc_relu6_quant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 95, 100, 135, 140, 125, 140, 140, 140, 135, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_quant8_2; }; std::vector
& get_examples_nhwc_relu6_quant8_weight_as_input_2() { static std::vector
examples_nhwc_relu6_quant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}, {1, {130, 134, 138, 142, 146, 150, 154, 158, 162, 132, 136, 140, 144, 148, 152, 156, 160, 164}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 95, 100, 135, 140, 125, 140, 140, 140, 135, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_quant8_weight_as_input_2; }; std::vector
& get_examples_nhwc_relu6_channelQuant8() { static std::vector
examples_nhwc_relu6_channelQuant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 83, 84, 91, 92, 89, 92, 92, 92, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_channelQuant8; }; std::vector
& get_examples_nhwc_relu6_channelQuant8_weight_as_input() { static std::vector
examples_nhwc_relu6_channelQuant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 83, 84, 91, 92, 89, 92, 92, 92, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_channelQuant8_weight_as_input; }; std::vector
& get_examples_nhwc_relu6_channelQuant8_2() { static std::vector
examples_nhwc_relu6_channelQuant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 95, 100, 135, 140, 125, 140, 140, 140, 135, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_channelQuant8_2; }; std::vector
& get_examples_nhwc_relu6_channelQuant8_weight_as_input_2() { static std::vector
examples_nhwc_relu6_channelQuant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 80, 95, 100, 135, 140, 125, 140, 140, 140, 135, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_channelQuant8_weight_as_input_2; }; std::vector
& get_examples_nhwc_relu6_float16() { static std::vector
examples_nhwc_relu6_float16 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 6.0f, 4.5f, 6.0f, 6.0f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_float16; }; std::vector
& get_examples_nhwc_relu6_float16_weight_as_input() { static std::vector
examples_nhwc_relu6_float16_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {0.0f, 0.0f, 1.5f, 2.0f, 5.5f, 6.0f, 4.5f, 6.0f, 6.0f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nhwc_relu6_float16_weight_as_input; }; std::vector
& get_examples_nchw_none() { static std::vector
examples_nchw_none = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none; }; std::vector
& get_examples_nchw_none_weight_as_input() { static std::vector
examples_nchw_none_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_weight_as_input; }; std::vector
& get_examples_nchw_none_relaxed() { static std::vector
examples_nchw_none_relaxed = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_relaxed; }; std::vector
& get_examples_nchw_none_relaxed_weight_as_input() { static std::vector
examples_nchw_none_relaxed_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_relaxed_weight_as_input; }; std::vector
& get_examples_nchw_none_quant8() { static std::vector
examples_nchw_none_quant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 3, 11, 9, 17, 11, 15, 47, 33, 41, 29, 45, 121, 81, 105, 39, 51, 119, 69, 85, 75, 87, 203, 117, 133, 0, 4, 16, 12, 20, 12, 16, 52, 36, 44, 36, 52, 140, 92, 116, 44, 56, 132, 76, 92, 80, 92, 216, 124, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_quant8; }; std::vector
& get_examples_nchw_none_quant8_weight_as_input() { static std::vector
examples_nchw_none_quant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}, {1, {2, 6, 10, 14, 18, 22, 26, 30, 34, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 3, 11, 9, 17, 11, 15, 47, 33, 41, 29, 45, 121, 81, 105, 39, 51, 119, 69, 85, 75, 87, 203, 117, 133, 0, 4, 16, 12, 20, 12, 16, 52, 36, 44, 36, 52, 140, 92, 116, 44, 56, 132, 76, 92, 80, 92, 216, 124, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_quant8_weight_as_input; }; std::vector
& get_examples_nchw_none_quant8_2() { static std::vector
examples_nchw_none_quant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 95, 135, 125, 165, 135, 155, 255, 245, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 100, 160, 140, 180, 140, 160, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_quant8_2; }; std::vector
& get_examples_nchw_none_quant8_weight_as_input_2() { static std::vector
examples_nchw_none_quant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}, {1, {130, 134, 138, 142, 146, 150, 154, 158, 162, 132, 136, 140, 144, 148, 152, 156, 160, 164}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 95, 135, 125, 165, 135, 155, 255, 245, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 100, 160, 140, 180, 140, 160, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_quant8_weight_as_input_2; }; std::vector
& get_examples_nchw_none_channelQuant8() { static std::vector
examples_nchw_none_channelQuant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 83, 91, 89, 97, 91, 95, 127, 113, 121, 109, 125, 201, 161, 185, 119, 131, 199, 149, 165, 155, 167, 255, 197, 213, 80, 84, 96, 92, 100, 92, 96, 132, 116, 124, 116, 132, 220, 172, 196, 124, 136, 212, 156, 172, 160, 172, 255, 204, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_channelQuant8; }; std::vector
& get_examples_nchw_none_channelQuant8_weight_as_input() { static std::vector
examples_nchw_none_channelQuant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 83, 91, 89, 97, 91, 95, 127, 113, 121, 109, 125, 201, 161, 185, 119, 131, 199, 149, 165, 155, 167, 255, 197, 213, 80, 84, 96, 92, 100, 92, 96, 132, 116, 124, 116, 132, 220, 172, 196, 124, 136, 212, 156, 172, 160, 172, 255, 204, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_channelQuant8_weight_as_input; }; std::vector
& get_examples_nchw_none_channelQuant8_2() { static std::vector
examples_nchw_none_channelQuant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 95, 135, 125, 165, 135, 155, 255, 245, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 100, 160, 140, 180, 140, 160, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_channelQuant8_2; }; std::vector
& get_examples_nchw_none_channelQuant8_weight_as_input_2() { static std::vector
examples_nchw_none_channelQuant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 95, 135, 125, 165, 135, 155, 255, 245, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 100, 160, 140, 180, 140, 160, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_channelQuant8_weight_as_input_2; }; std::vector
& get_examples_nchw_none_float16() { static std::vector
examples_nchw_none_float16 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_float16; }; std::vector
& get_examples_nchw_none_float16_weight_as_input() { static std::vector
examples_nchw_none_float16_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_none_float16_weight_as_input; }; std::vector
& get_examples_nchw_relu() { static std::vector
examples_nchw_relu = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu; }; std::vector
& get_examples_nchw_relu_weight_as_input() { static std::vector
examples_nchw_relu_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_weight_as_input; }; std::vector
& get_examples_nchw_relu_relaxed() { static std::vector
examples_nchw_relu_relaxed = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_relaxed; }; std::vector
& get_examples_nchw_relu_relaxed_weight_as_input() { static std::vector
examples_nchw_relu_relaxed_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_relaxed_weight_as_input; }; std::vector
& get_examples_nchw_relu_quant8() { static std::vector
examples_nchw_relu_quant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 3, 11, 9, 17, 11, 15, 47, 33, 41, 29, 45, 121, 81, 105, 39, 51, 119, 69, 85, 75, 87, 203, 117, 133, 0, 4, 16, 12, 20, 12, 16, 52, 36, 44, 36, 52, 140, 92, 116, 44, 56, 132, 76, 92, 80, 92, 216, 124, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_quant8; }; std::vector
& get_examples_nchw_relu_quant8_weight_as_input() { static std::vector
examples_nchw_relu_quant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}, {1, {2, 6, 10, 14, 18, 22, 26, 30, 34, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 3, 11, 9, 17, 11, 15, 47, 33, 41, 29, 45, 121, 81, 105, 39, 51, 119, 69, 85, 75, 87, 203, 117, 133, 0, 4, 16, 12, 20, 12, 16, 52, 36, 44, 36, 52, 140, 92, 116, 44, 56, 132, 76, 92, 80, 92, 216, 124, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_quant8_weight_as_input; }; std::vector
& get_examples_nchw_relu_quant8_2() { static std::vector
examples_nchw_relu_quant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 95, 135, 125, 165, 135, 155, 255, 245, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 100, 160, 140, 180, 140, 160, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_quant8_2; }; std::vector
& get_examples_nchw_relu_quant8_weight_as_input_2() { static std::vector
examples_nchw_relu_quant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}, {1, {130, 134, 138, 142, 146, 150, 154, 158, 162, 132, 136, 140, 144, 148, 152, 156, 160, 164}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 95, 135, 125, 165, 135, 155, 255, 245, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 100, 160, 140, 180, 140, 160, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_quant8_weight_as_input_2; }; std::vector
& get_examples_nchw_relu_channelQuant8() { static std::vector
examples_nchw_relu_channelQuant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 83, 91, 89, 97, 91, 95, 127, 113, 121, 109, 125, 201, 161, 185, 119, 131, 199, 149, 165, 155, 167, 255, 197, 213, 80, 84, 96, 92, 100, 92, 96, 132, 116, 124, 116, 132, 220, 172, 196, 124, 136, 212, 156, 172, 160, 172, 255, 204, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_channelQuant8; }; std::vector
& get_examples_nchw_relu_channelQuant8_weight_as_input() { static std::vector
examples_nchw_relu_channelQuant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 83, 91, 89, 97, 91, 95, 127, 113, 121, 109, 125, 201, 161, 185, 119, 131, 199, 149, 165, 155, 167, 255, 197, 213, 80, 84, 96, 92, 100, 92, 96, 132, 116, 124, 116, 132, 220, 172, 196, 124, 136, 212, 156, 172, 160, 172, 255, 204, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_channelQuant8_weight_as_input; }; std::vector
& get_examples_nchw_relu_channelQuant8_2() { static std::vector
examples_nchw_relu_channelQuant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 95, 135, 125, 165, 135, 155, 255, 245, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 100, 160, 140, 180, 140, 160, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_channelQuant8_2; }; std::vector
& get_examples_nchw_relu_channelQuant8_weight_as_input_2() { static std::vector
examples_nchw_relu_channelQuant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 95, 135, 125, 165, 135, 155, 255, 245, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 100, 160, 140, 180, 140, 160, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_channelQuant8_weight_as_input_2; }; std::vector
& get_examples_nchw_relu_float16() { static std::vector
examples_nchw_relu_float16 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_float16; }; std::vector
& get_examples_nchw_relu_float16_weight_as_input() { static std::vector
examples_nchw_relu_float16_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 8.5f, 5.5f, 7.5f, 23.5f, 16.5f, 20.5f, 14.5f, 22.5f, 60.5f, 40.5f, 52.5f, 19.5f, 25.5f, 59.5f, 34.5f, 42.5f, 37.5f, 43.5f, 101.5f, 58.5f, 66.5f, 0.0f, 2.0f, 8.0f, 6.0f, 10.0f, 6.0f, 8.0f, 26.0f, 18.0f, 22.0f, 18.0f, 26.0f, 70.0f, 46.0f, 58.0f, 22.0f, 28.0f, 66.0f, 38.0f, 46.0f, 40.0f, 46.0f, 108.0f, 62.0f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu_float16_weight_as_input; }; std::vector
& get_examples_nchw_relu1() { static std::vector
examples_nchw_relu1 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1; }; std::vector
& get_examples_nchw_relu1_weight_as_input() { static std::vector
examples_nchw_relu1_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_weight_as_input; }; std::vector
& get_examples_nchw_relu1_relaxed() { static std::vector
examples_nchw_relu1_relaxed = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_relaxed; }; std::vector
& get_examples_nchw_relu1_relaxed_weight_as_input() { static std::vector
examples_nchw_relu1_relaxed_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_relaxed_weight_as_input; }; std::vector
& get_examples_nchw_relu1_quant8() { static std::vector
examples_nchw_relu1_quant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_quant8; }; std::vector
& get_examples_nchw_relu1_quant8_weight_as_input() { static std::vector
examples_nchw_relu1_quant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}, {1, {2, 6, 10, 14, 18, 22, 26, 30, 34, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_quant8_weight_as_input; }; std::vector
& get_examples_nchw_relu1_quant8_2() { static std::vector
examples_nchw_relu1_quant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 80, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_quant8_2; }; std::vector
& get_examples_nchw_relu1_quant8_weight_as_input_2() { static std::vector
examples_nchw_relu1_quant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}, {1, {130, 134, 138, 142, 146, 150, 154, 158, 162, 132, 136, 140, 144, 148, 152, 156, 160, 164}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 80, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_quant8_weight_as_input_2; }; std::vector
& get_examples_nchw_relu1_channelQuant8() { static std::vector
examples_nchw_relu1_channelQuant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 80, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_channelQuant8; }; std::vector
& get_examples_nchw_relu1_channelQuant8_weight_as_input() { static std::vector
examples_nchw_relu1_channelQuant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 80, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_channelQuant8_weight_as_input; }; std::vector
& get_examples_nchw_relu1_channelQuant8_2() { static std::vector
examples_nchw_relu1_channelQuant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 80, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_channelQuant8_2; }; std::vector
& get_examples_nchw_relu1_channelQuant8_weight_as_input_2() { static std::vector
examples_nchw_relu1_channelQuant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 80, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_channelQuant8_weight_as_input_2; }; std::vector
& get_examples_nchw_relu1_float16() { static std::vector
examples_nchw_relu1_float16 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_float16; }; std::vector
& get_examples_nchw_relu1_float16_weight_as_input() { static std::vector
examples_nchw_relu1_float16_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu1_float16_weight_as_input; }; std::vector
& get_examples_nchw_relu6() { static std::vector
examples_nchw_relu6 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 0.0f, 2.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6; }; std::vector
& get_examples_nchw_relu6_weight_as_input() { static std::vector
examples_nchw_relu6_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 0.0f, 2.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_weight_as_input; }; std::vector
& get_examples_nchw_relu6_relaxed() { static std::vector
examples_nchw_relu6_relaxed = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 0.0f, 2.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_relaxed; }; std::vector
& get_examples_nchw_relu6_relaxed_weight_as_input() { static std::vector
examples_nchw_relu6_relaxed_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 0.0f, 2.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_relaxed_weight_as_input; }; std::vector
& get_examples_nchw_relu6_quant8() { static std::vector
examples_nchw_relu6_quant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 3, 11, 9, 12, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 4, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_quant8; }; std::vector
& get_examples_nchw_relu6_quant8_weight_as_input() { static std::vector
examples_nchw_relu6_quant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}, {1, {2, 6, 10, 14, 18, 22, 26, 30, 34, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 3, 11, 9, 12, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 4, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_quant8_weight_as_input; }; std::vector
& get_examples_nchw_relu6_quant8_2() { static std::vector
examples_nchw_relu6_quant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 95, 135, 125, 140, 135, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 80, 100, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_quant8_2; }; std::vector
& get_examples_nchw_relu6_quant8_weight_as_input_2() { static std::vector
examples_nchw_relu6_quant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}, {1, {130, 134, 138, 142, 146, 150, 154, 158, 162, 132, 136, 140, 144, 148, 152, 156, 160, 164}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 95, 135, 125, 140, 135, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 80, 100, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_quant8_weight_as_input_2; }; std::vector
& get_examples_nchw_relu6_channelQuant8() { static std::vector
examples_nchw_relu6_channelQuant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 83, 91, 89, 92, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 80, 84, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_channelQuant8; }; std::vector
& get_examples_nchw_relu6_channelQuant8_weight_as_input() { static std::vector
examples_nchw_relu6_channelQuant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 83, 91, 89, 92, 91, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 80, 84, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_channelQuant8_weight_as_input; }; std::vector
& get_examples_nchw_relu6_channelQuant8_2() { static std::vector
examples_nchw_relu6_channelQuant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 95, 135, 125, 140, 135, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 80, 100, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_channelQuant8_2; }; std::vector
& get_examples_nchw_relu6_channelQuant8_weight_as_input_2() { static std::vector
examples_nchw_relu6_channelQuant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {80, 95, 135, 125, 140, 135, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 80, 100, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_channelQuant8_weight_as_input_2; }; std::vector
& get_examples_nchw_relu6_float16() { static std::vector
examples_nchw_relu6_float16 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 0.0f, 2.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_float16; }; std::vector
& get_examples_nchw_relu6_float16_weight_as_input() { static std::vector
examples_nchw_relu6_float16_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 1, 2, 2}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 5, 5}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {0.0f, 1.5f, 5.5f, 4.5f, 6.0f, 5.5f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 0.0f, 2.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f, 6.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_nchw_relu6_float16_weight_as_input; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none() { static std::vector
examples_dynamic_output_shape_nhwc_none = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_weight_as_input() { static std::vector
examples_dynamic_output_shape_nhwc_none_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_weight_as_input; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_relaxed() { static std::vector
examples_dynamic_output_shape_nhwc_none_relaxed = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_relaxed; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_relaxed_weight_as_input() { static std::vector
examples_dynamic_output_shape_nhwc_none_relaxed_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_relaxed_weight_as_input; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_quant8() { static std::vector
examples_dynamic_output_shape_nhwc_none_quant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 3, 4, 11, 16, 9, 12, 17, 20, 11, 12, 15, 16, 47, 52, 33, 36, 41, 44, 29, 36, 45, 52, 121, 140, 81, 92, 105, 116, 39, 44, 51, 56, 119, 132, 69, 76, 85, 92, 75, 80, 87, 92, 203, 216, 117, 124, 133, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_quant8; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_quant8_weight_as_input() { static std::vector
examples_dynamic_output_shape_nhwc_none_quant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {2, 4, 6, 8}}, {1, {2, 6, 10, 14, 18, 22, 26, 30, 34, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {0, 0, 3, 4, 11, 16, 9, 12, 17, 20, 11, 12, 15, 16, 47, 52, 33, 36, 41, 44, 29, 36, 45, 52, 121, 140, 81, 92, 105, 116, 39, 44, 51, 56, 119, 132, 69, 76, 85, 92, 75, 80, 87, 92, 203, 216, 117, 124, 133, 140}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_quant8_weight_as_input; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_quant8_2() { static std::vector
examples_dynamic_output_shape_nhwc_none_quant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_quant8_2; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_quant8_weight_as_input_2() { static std::vector
examples_dynamic_output_shape_nhwc_none_quant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-6, -8}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {102, 104, 106, 108}}, {1, {130, 134, 138, 142, 146, 150, 154, 158, 162, 132, 136, 140, 144, 148, 152, 156, 160, 164}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_quant8_weight_as_input_2; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_channelQuant8() { static std::vector
examples_dynamic_output_shape_nhwc_none_channelQuant8 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 80, 83, 84, 91, 96, 89, 92, 97, 100, 91, 92, 95, 96, 127, 132, 113, 116, 121, 124, 109, 116, 125, 132, 201, 220, 161, 172, 185, 196, 119, 124, 131, 136, 199, 212, 149, 156, 165, 172, 155, 160, 167, 172, 255, 255, 197, 204, 213, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_channelQuant8; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_channelQuant8_weight_as_input() { static std::vector
examples_dynamic_output_shape_nhwc_none_channelQuant8_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {79, 80, 83, 84, 91, 96, 89, 92, 97, 100, 91, 92, 95, 96, 127, 132, 113, 116, 121, 124, 109, 116, 125, 132, 201, 220, 161, 172, 185, 196, 119, 124, 131, 136, 199, 212, 149, 156, 165, 172, 155, 160, 167, 172, 255, 255, 197, 204, 213, 220}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_channelQuant8_weight_as_input; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_channelQuant8_2() { static std::vector
examples_dynamic_output_shape_nhwc_none_channelQuant8_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_channelQuant8_2; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_channelQuant8_weight_as_input_2() { static std::vector
examples_dynamic_output_shape_nhwc_none_channelQuant8_weight_as_input_2 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {{2, {-24, -16}}}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {104, 108, 112, 116}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {{1, {4, 12, 20, 28, 36, 44, 52, 60, 68, 4, 8, 12, 16, 20, 24, 28, 32, 36}}}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {{0, {75, 80, 95, 100, 135, 160, 125, 140, 165, 180, 135, 140, 155, 160, 255, 255, 245, 255, 255, 255, 225, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}}}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_channelQuant8_weight_as_input_2; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_float16() { static std::vector
examples_dynamic_output_shape_nhwc_none_float16 = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_float16; }; std::vector
& get_examples_dynamic_output_shape_nhwc_none_float16_weight_as_input() { static std::vector
examples_dynamic_output_shape_nhwc_none_float16_weight_as_input = { // Begin of an example { .operands = { //Input(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 2, 2, 1}}, {1, {2, 3, 3, 1}}, {2, {2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {1.0f, 2.0f, 3.0f, 4.0f}}, {1, {1.0f, 3.0f, 5.0f, 7.0f, 9.0f, 11.0f, 13.0f, 15.0f, 17.0f, 2.0f, 4.0f, 6.0f, 8.0f, 10.0f, 12.0f, 14.0f, 16.0f, 18.0f}}, {2, {-1.5f, -2.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, }, //Output(s) { // See tools/test_generator/include/TestHarness.h:MixedTyped // int -> Dimensions map .operandDimensions = {{0, {1, 5, 5, 2}}}, // int -> FLOAT32 map .float32Operands = {}, // int -> INT32 map .int32Operands = {}, // int -> QUANT8_ASYMM map .quant8AsymmOperands = {}, // int -> QUANT16_SYMM map .quant16SymmOperands = {}, // int -> FLOAT16 map .float16Operands = {{0, {-0.5f, 0.0f, 1.5f, 2.0f, 5.5f, 8.0f, 4.5f, 6.0f, 8.5f, 10.0f, 5.5f, 6.0f, 7.5f, 8.0f, 23.5f, 26.0f, 16.5f, 18.0f, 20.5f, 22.0f, 14.5f, 18.0f, 22.5f, 26.0f, 60.5f, 70.0f, 40.5f, 46.0f, 52.5f, 58.0f, 19.5f, 22.0f, 25.5f, 28.0f, 59.5f, 66.0f, 34.5f, 38.0f, 42.5f, 46.0f, 37.5f, 40.0f, 43.5f, 46.0f, 101.5f, 108.0f, 58.5f, 62.0f, 66.5f, 70.0f}}}, // int -> BOOL8 map .bool8Operands = {}, // int -> QUANT8_SYMM_PER_CHANNEL map .quant8ChannelOperands = {}, // int -> QUANT16_ASYMM map .quant16AsymmOperands = {}, // int -> QUANT8_SYMM map .quant8SymmOperands = {}, } }, }, // End of an example }; return examples_dynamic_output_shape_nhwc_none_float16_weight_as_input; }; std::vector
& get_examples_dynamic_output_shape_nhwc_relu() { static std::vector