Home | History | Annotate | Download | only in examples
      1 // clang-format off
      2 // Generated file (from: lstm_state_relaxed.mod.py). Do not edit
      3 std::vector<MixedTypedExample>& get_examples() {
      4 static std::vector<MixedTypedExample> examples = {
      5 // Begin of an example
      6 {
      7 .operands = {
      8 //Input(s)
      9 { // See tools/test_generator/include/TestHarness.h:MixedTyped
     10   // int -> Dimensions map
     11   .operandDimensions = {{0, {1, 2}}, {1, {4, 2}}, {2, {4, 2}}, {3, {4, 2}}, {4, {4, 2}}, {5, {4, 4}}, {6, {4, 4}}, {7, {4, 4}}, {8, {4, 4}}, {9, {0}}, {10, {0}}, {11, {0}}, {12, {4}}, {13, {4}}, {14, {4}}, {15, {4}}, {16, {0, 0}}, {17, {0}}, {18, {1, 4}}, {19, {1, 4}}},
     12   // int -> FLOAT32 map
     13   .float32Operands = {{0, {3.0f, 4.0f}}, {1, {-0.45018822f, -0.02338299f, -0.0870589f, -0.34550029f, 0.04266912f, -0.15680569f, -0.34856534f, 0.43890524f}}, {2, {0.09701663f, 0.20334584f, -0.50592935f, -0.31343272f, -0.40032279f, 0.44781327f, 0.01387155f, -0.35593212f}}, {3, {-0.50013041f, 0.1370284f, 0.11810488f, 0.2013163f, -0.20583314f, 0.44344562f, 0.22077113f, -0.29909778f}}, {4, {-0.25065863f, -0.28290087f, 0.04613829f, 0.40525138f, 0.44272184f, 0.03897077f, -0.1556896f, 0.19487578f}}, {5, {-0.0063535f, -0.2042388f, 0.31454784f, -0.35746509f, 0.28902304f, 0.08183324f, -0.16555229f, 0.02286911f, -0.13566875f, 0.03034258f, 0.48091322f, -0.12528998f, 0.24077177f, -0.51332325f, -0.33502164f, 0.10629296f}}, {6, {-0.48684245f, -0.06655136f, 0.42224967f, 0.2112639f, 0.27654213f, 0.20864892f, -0.07646349f, 0.45877004f, 0.00141793f, -0.14609534f, 0.36447752f, 0.09196436f, 0.28053468f, 0.01560611f, -0.20127171f, -0.01140004f}}, {7, {-0.3407414f, 0.24443203f, -0.2078532f, 0.26320225f, 0.05695659f, -0.00123841f, -0.4744786f, -0.35869038f, -0.06418842f, -0.13502428f, -0.501764f, 0.22830659f, -0.46367589f, 0.26016325f, -0.03894562f, -0.16368064f}}, {8, {0.43385774f, -0.17194885f, 0.2718237f, 0.09215671f, 0.24107647f, -0.39835793f, 0.18212086f, 0.01301402f, 0.48572797f, -0.50656658f, 0.20047462f, -0.20607421f, -0.51818722f, -0.15390486f, 0.0468148f, 0.39922136f}}, {9, {}}, {10, {}}, {11, {}}, {12, {0.0f, 0.0f, 0.0f, 0.0f}}, {13, {1.0f, 1.0f, 1.0f, 1.0f}}, {14, {0.0f, 0.0f, 0.0f, 0.0f}}, {15, {0.0f, 0.0f, 0.0f, 0.0f}}, {16, {}}, {17, {}}, {18, {-0.0297319f, 0.122947f, 0.208851f, -0.153588f}}, {19, {-0.145439f, 0.157475f, 0.293663f, -0.277353f}}},
     14   // int -> INT32 map
     15   .int32Operands = {},
     16   // int -> QUANT8_ASYMM map
     17   .quant8AsymmOperands = {},
     18   // int -> QUANT16_SYMM map
     19   .quant16SymmOperands = {},
     20   // int -> FLOAT16 map
     21   .float16Operands = {},
     22   // int -> BOOL8 map
     23   .bool8Operands = {},
     24   // int -> QUANT8_SYMM_PER_CHANNEL map
     25   .quant8ChannelOperands = {},
     26   // int -> QUANT16_ASYMM map
     27   .quant16AsymmOperands = {},
     28   // int -> QUANT8_SYMM map
     29   .quant8SymmOperands = {},
     30 },
     31 //Output(s)
     32 { // See tools/test_generator/include/TestHarness.h:MixedTyped
     33   // int -> Dimensions map
     34   .operandDimensions = {{0, {1, 16}}, {1, {1, 4}}, {2, {1, 4}}, {3, {1, 4}}},
     35   // int -> FLOAT32 map
     36   .float32Operands = {{0, {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}}, {1, {-0.0371611f, 0.125073f, 0.411934f, -0.208605f}}, {2, {-0.287121f, 0.148115f, 0.556837f, -0.388276f}}, {3, {-0.03716109f, 0.12507336f, 0.41193449f, -0.20860538f}}},
     37   // int -> INT32 map
     38   .int32Operands = {},
     39   // int -> QUANT8_ASYMM map
     40   .quant8AsymmOperands = {},
     41   // int -> QUANT16_SYMM map
     42   .quant16SymmOperands = {},
     43   // int -> FLOAT16 map
     44   .float16Operands = {},
     45   // int -> BOOL8 map
     46   .bool8Operands = {},
     47   // int -> QUANT8_SYMM_PER_CHANNEL map
     48   .quant8ChannelOperands = {},
     49   // int -> QUANT16_ASYMM map
     50   .quant16AsymmOperands = {},
     51   // int -> QUANT8_SYMM map
     52   .quant8SymmOperands = {},
     53 }
     54 },
     55 }, // End of an example
     56 };
     57 return examples;
     58 };
     59 
     60 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape() {
     61 static std::vector<MixedTypedExample> examples_dynamic_output_shape = {
     62 // Begin of an example
     63 {
     64 .operands = {
     65 //Input(s)
     66 { // See tools/test_generator/include/TestHarness.h:MixedTyped
     67   // int -> Dimensions map
     68   .operandDimensions = {{0, {1, 2}}, {1, {4, 2}}, {2, {4, 2}}, {3, {4, 2}}, {4, {4, 2}}, {5, {4, 4}}, {6, {4, 4}}, {7, {4, 4}}, {8, {4, 4}}, {9, {0}}, {10, {0}}, {11, {0}}, {12, {4}}, {13, {4}}, {14, {4}}, {15, {4}}, {16, {0, 0}}, {17, {0}}, {18, {1, 4}}, {19, {1, 4}}},
     69   // int -> FLOAT32 map
     70   .float32Operands = {{0, {3.0f, 4.0f}}, {1, {-0.45018822f, -0.02338299f, -0.0870589f, -0.34550029f, 0.04266912f, -0.15680569f, -0.34856534f, 0.43890524f}}, {2, {0.09701663f, 0.20334584f, -0.50592935f, -0.31343272f, -0.40032279f, 0.44781327f, 0.01387155f, -0.35593212f}}, {3, {-0.50013041f, 0.1370284f, 0.11810488f, 0.2013163f, -0.20583314f, 0.44344562f, 0.22077113f, -0.29909778f}}, {4, {-0.25065863f, -0.28290087f, 0.04613829f, 0.40525138f, 0.44272184f, 0.03897077f, -0.1556896f, 0.19487578f}}, {5, {-0.0063535f, -0.2042388f, 0.31454784f, -0.35746509f, 0.28902304f, 0.08183324f, -0.16555229f, 0.02286911f, -0.13566875f, 0.03034258f, 0.48091322f, -0.12528998f, 0.24077177f, -0.51332325f, -0.33502164f, 0.10629296f}}, {6, {-0.48684245f, -0.06655136f, 0.42224967f, 0.2112639f, 0.27654213f, 0.20864892f, -0.07646349f, 0.45877004f, 0.00141793f, -0.14609534f, 0.36447752f, 0.09196436f, 0.28053468f, 0.01560611f, -0.20127171f, -0.01140004f}}, {7, {-0.3407414f, 0.24443203f, -0.2078532f, 0.26320225f, 0.05695659f, -0.00123841f, -0.4744786f, -0.35869038f, -0.06418842f, -0.13502428f, -0.501764f, 0.22830659f, -0.46367589f, 0.26016325f, -0.03894562f, -0.16368064f}}, {8, {0.43385774f, -0.17194885f, 0.2718237f, 0.09215671f, 0.24107647f, -0.39835793f, 0.18212086f, 0.01301402f, 0.48572797f, -0.50656658f, 0.20047462f, -0.20607421f, -0.51818722f, -0.15390486f, 0.0468148f, 0.39922136f}}, {9, {}}, {10, {}}, {11, {}}, {12, {0.0f, 0.0f, 0.0f, 0.0f}}, {13, {1.0f, 1.0f, 1.0f, 1.0f}}, {14, {0.0f, 0.0f, 0.0f, 0.0f}}, {15, {0.0f, 0.0f, 0.0f, 0.0f}}, {16, {}}, {17, {}}, {18, {-0.0297319f, 0.122947f, 0.208851f, -0.153588f}}, {19, {-0.145439f, 0.157475f, 0.293663f, -0.277353f}}},
     71   // int -> INT32 map
     72   .int32Operands = {},
     73   // int -> QUANT8_ASYMM map
     74   .quant8AsymmOperands = {},
     75   // int -> QUANT16_SYMM map
     76   .quant16SymmOperands = {},
     77   // int -> FLOAT16 map
     78   .float16Operands = {},
     79   // int -> BOOL8 map
     80   .bool8Operands = {},
     81   // int -> QUANT8_SYMM_PER_CHANNEL map
     82   .quant8ChannelOperands = {},
     83   // int -> QUANT16_ASYMM map
     84   .quant16AsymmOperands = {},
     85   // int -> QUANT8_SYMM map
     86   .quant8SymmOperands = {},
     87 },
     88 //Output(s)
     89 { // See tools/test_generator/include/TestHarness.h:MixedTyped
     90   // int -> Dimensions map
     91   .operandDimensions = {{0, {1, 16}}, {1, {1, 4}}, {2, {1, 4}}, {3, {1, 4}}},
     92   // int -> FLOAT32 map
     93   .float32Operands = {{0, {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}}, {1, {-0.0371611f, 0.125073f, 0.411934f, -0.208605f}}, {2, {-0.287121f, 0.148115f, 0.556837f, -0.388276f}}, {3, {-0.03716109f, 0.12507336f, 0.41193449f, -0.20860538f}}},
     94   // int -> INT32 map
     95   .int32Operands = {},
     96   // int -> QUANT8_ASYMM map
     97   .quant8AsymmOperands = {},
     98   // int -> QUANT16_SYMM map
     99   .quant16SymmOperands = {},
    100   // int -> FLOAT16 map
    101   .float16Operands = {},
    102   // int -> BOOL8 map
    103   .bool8Operands = {},
    104   // int -> QUANT8_SYMM_PER_CHANNEL map
    105   .quant8ChannelOperands = {},
    106   // int -> QUANT16_ASYMM map
    107   .quant16AsymmOperands = {},
    108   // int -> QUANT8_SYMM map
    109   .quant8SymmOperands = {},
    110 }
    111 },
    112 }, // End of an example
    113 };
    114 return examples_dynamic_output_shape;
    115 };
    116 
    117