| // clang-format off |
| // Generated file (from: resize_bilinear_v1_2.mod.py). Do not edit |
| std::vector<MixedTypedExample>& get_examples_nhwc() { |
| static std::vector<MixedTypedExample> examples_nhwc = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 1.0f, 2.0f, 2.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 1.0f, 1.0f, 1.666666667f, 1.666666667f, 1.666666667f, 2.0f, 2.0f, 2.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nhwc; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nhwc_relaxed() { |
| static std::vector<MixedTypedExample> examples_nhwc_relaxed = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 1.0f, 2.0f, 2.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 1.0f, 1.0f, 1.666666667f, 1.666666667f, 1.666666667f, 2.0f, 2.0f, 2.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nhwc_relaxed; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nhwc_float16() { |
| static std::vector<MixedTypedExample> examples_nhwc_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, 1.0f, 2.0f, 2.0f}}}, |
| }, |
| //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, 1.0f, 1.0f, 1.6666666269302368f, 1.6666666269302368f, 1.6666666269302368f, 2.0f, 2.0f, 2.0f}}}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nhwc_float16; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nchw() { |
| static std::vector<MixedTypedExample> examples_nchw = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 1.0f, 2.0f, 2.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 1.0f, 1.0f, 1.666666667f, 1.666666667f, 1.666666667f, 2.0f, 2.0f, 2.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nchw; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nchw_relaxed() { |
| static std::vector<MixedTypedExample> examples_nchw_relaxed = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 1.0f, 2.0f, 2.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {1.0f, 1.0f, 1.0f, 1.666666667f, 1.666666667f, 1.666666667f, 2.0f, 2.0f, 2.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nchw_relaxed; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nchw_float16() { |
| static std::vector<MixedTypedExample> examples_nchw_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, 1.0f, 2.0f, 2.0f}}}, |
| }, |
| //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, 1.0f, 1.0f, 1.6666666269302368f, 1.6666666269302368f, 1.6666666269302368f, 2.0f, 2.0f, 2.0f}}}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nchw_float16; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nhwc_2() { |
| static std::vector<MixedTypedExample> examples_nhwc_2 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {3.0f, 4.0f, 6.0f, 10.0f, 9.0f, 10.0f, 12.0f, 16.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {3.0f, 4.0f, 5.0f, 8.0f, 6.0f, 10.0f, 7.0f, 8.0f, 9.0f, 12.0f, 10.0f, 14.0f, 9.0f, 10.0f, 11.0f, 14.0f, 12.0f, 16.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nhwc_2; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nhwc_relaxed_2() { |
| static std::vector<MixedTypedExample> examples_nhwc_relaxed_2 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {3.0f, 4.0f, 6.0f, 10.0f, 9.0f, 10.0f, 12.0f, 16.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {3.0f, 4.0f, 5.0f, 8.0f, 6.0f, 10.0f, 7.0f, 8.0f, 9.0f, 12.0f, 10.0f, 14.0f, 9.0f, 10.0f, 11.0f, 14.0f, 12.0f, 16.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nhwc_relaxed_2; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nhwc_float16_2() { |
| static std::vector<MixedTypedExample> examples_nhwc_float16_2 = { |
| // 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, {3.0f, 4.0f, 6.0f, 10.0f, 9.0f, 10.0f, 12.0f, 16.0f}}}, |
| }, |
| //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, {3.0f, 4.0f, 5.0f, 8.0f, 6.0f, 10.0f, 7.0f, 8.0f, 9.0f, 12.0f, 10.0f, 14.0f, 9.0f, 10.0f, 11.0f, 14.0f, 12.0f, 16.0f}}}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nhwc_float16_2; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nchw_2() { |
| static std::vector<MixedTypedExample> examples_nchw_2 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {3.0f, 6.0f, 9.0f, 12.0f, 4.0f, 10.0f, 10.0f, 16.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {3.0f, 5.0f, 6.0f, 7.0f, 9.0f, 10.0f, 9.0f, 11.0f, 12.0f, 4.0f, 8.0f, 10.0f, 8.0f, 12.0f, 14.0f, 10.0f, 14.0f, 16.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nchw_2; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nchw_relaxed_2() { |
| static std::vector<MixedTypedExample> examples_nchw_relaxed_2 = { |
| // Begin of an example |
| { |
| .operands = { |
| //Input(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {3.0f, 6.0f, 9.0f, 12.0f, 4.0f, 10.0f, 10.0f, 16.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| }, |
| //Output(s) |
| { // See tools/test_generator/include/TestHarness.h:MixedTyped |
| // int -> FLOAT32 map |
| {{0, {3.0f, 5.0f, 6.0f, 7.0f, 9.0f, 10.0f, 9.0f, 11.0f, 12.0f, 4.0f, 8.0f, 10.0f, 8.0f, 12.0f, 14.0f, 10.0f, 14.0f, 16.0f}}}, |
| // int -> INT32 map |
| {}, |
| // int -> QUANT8_ASYMM map |
| {}, |
| // int -> QUANT16_SYMM map |
| {}, |
| // int -> FLOAT16 map |
| {}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nchw_relaxed_2; |
| }; |
| |
| std::vector<MixedTypedExample>& get_examples_nchw_float16_2() { |
| static std::vector<MixedTypedExample> examples_nchw_float16_2 = { |
| // 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, {3.0f, 6.0f, 9.0f, 12.0f, 4.0f, 10.0f, 10.0f, 16.0f}}}, |
| }, |
| //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, {3.0f, 5.0f, 6.0f, 7.0f, 9.0f, 10.0f, 9.0f, 11.0f, 12.0f, 4.0f, 8.0f, 10.0f, 8.0f, 12.0f, 14.0f, 10.0f, 14.0f, 16.0f}}}, |
| } |
| }, |
| }, // End of an example |
| }; |
| return examples_nchw_float16_2; |
| }; |
| |