| // clang-format off |
| // Generated file (from: sub_float16_broadcast.mod.py). Do not edit |
| std::vector<MixedTypedExample>& get_examples() { |
| static std::vector<MixedTypedExample> examples = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> Dimensions map |
| .operandDimensions = {{0, {1, 2}}, {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, {10.0f, 20.0f}}, {1, {0.1f, 0.2f, 0.3f, 0.4f}}}, |
| // 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, {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, {9.9f, 19.8f, 9.7f, 19.6f}}}, |
| // 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; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_dynamic_output_shape() { |
| static std::vector<MixedTypedExample> examples_dynamic_output_shape = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> Dimensions map |
| .operandDimensions = {{0, {1, 2}}, {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, {10.0f, 20.0f}}, {1, {0.1f, 0.2f, 0.3f, 0.4f}}}, |
| // 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, {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, {9.9f, 19.8f, 9.7f, 19.6f}}}, |
| // 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; |
| }; |
| |