| // clang-format off |
| // Generated file (from: cast.mod.py). Do not edit |
| std::vector<MixedTypedExample>& get_examples_float16_to_float16() { |
| static std::vector<MixedTypedExample> examples_float16_to_float16 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float16_to_float16; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float16_to_float32() { |
| static std::vector<MixedTypedExample> examples_float16_to_float32 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float16_to_float32; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float16_to_float32_relaxed() { |
| static std::vector<MixedTypedExample> examples_float16_to_float32_relaxed = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float16_to_float32_relaxed; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float16_to_int32() { |
| static std::vector<MixedTypedExample> examples_float16_to_int32 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float16_to_int32; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float16_to_quant8() { |
| static std::vector<MixedTypedExample> examples_float16_to_quant8 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float16_to_quant8; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float32_to_float16() { |
| static std::vector<MixedTypedExample> examples_float32_to_float16 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float32_to_float16; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float32_to_float16_relaxed() { |
| static std::vector<MixedTypedExample> examples_float32_to_float16_relaxed = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float32_to_float16_relaxed; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float32_to_float32() { |
| static std::vector<MixedTypedExample> examples_float32_to_float32 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float32_to_float32; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float32_to_float32_relaxed() { |
| static std::vector<MixedTypedExample> examples_float32_to_float32_relaxed = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float32_to_float32_relaxed; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float32_to_int32() { |
| static std::vector<MixedTypedExample> examples_float32_to_int32 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float32_to_int32; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float32_to_int32_relaxed() { |
| static std::vector<MixedTypedExample> examples_float32_to_int32_relaxed = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float32_to_int32_relaxed; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float32_to_quant8() { |
| static std::vector<MixedTypedExample> examples_float32_to_quant8 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float32_to_quant8; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_float32_to_quant8_relaxed() { |
| static std::vector<MixedTypedExample> examples_float32_to_quant8_relaxed = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_float32_to_quant8_relaxed; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_int32_to_float16() { |
| static std::vector<MixedTypedExample> examples_int32_to_float16 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_int32_to_float16; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_int32_to_float32() { |
| static std::vector<MixedTypedExample> examples_int32_to_float32 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_int32_to_float32; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_int32_to_float32_relaxed() { |
| static std::vector<MixedTypedExample> examples_int32_to_float32_relaxed = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_int32_to_float32_relaxed; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_int32_to_int32() { |
| static std::vector<MixedTypedExample> examples_int32_to_int32 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_int32_to_int32; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_int32_to_quant8() { |
| static std::vector<MixedTypedExample> examples_int32_to_quant8 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_int32_to_quant8; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_quant8_to_float16() { |
| static std::vector<MixedTypedExample> examples_quant8_to_float16 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_quant8_to_float16; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_quant8_to_float32() { |
| static std::vector<MixedTypedExample> examples_quant8_to_float32 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_quant8_to_float32; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_quant8_to_float32_relaxed() { |
| static std::vector<MixedTypedExample> examples_quant8_to_float32_relaxed = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_quant8_to_float32_relaxed; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_quant8_to_int32() { |
| static std::vector<MixedTypedExample> examples_quant8_to_int32 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_quant8_to_int32; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_quant8_to_quant8() { |
| static std::vector<MixedTypedExample> examples_quant8_to_quant8 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {{0, {1, 2, 3, 4, 5, 6}}}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| // int -> BOOL8 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_quant8_to_quant8; |
| }; |
| |