Home | History | Annotate | Download | only in models
      1 // Generated file (from: mean_quant8_2.mod.py). Do not edit
      2 void CreateModel(Model *model) {
      3   OperandType type2(Type::INT32, {});
      4   OperandType type1(Type::TENSOR_INT32, {2});
      5   OperandType type3(Type::TENSOR_QUANT8_ASYMM, {1, 3, 1}, 0.8, 5);
      6   OperandType type0(Type::TENSOR_QUANT8_ASYMM, {4, 3, 2}, 0.8, 5);
      7   // Phase 1, operands
      8   auto input = model->addOperand(&type0);
      9   auto axis = model->addOperand(&type1);
     10   auto keepDims = model->addOperand(&type2);
     11   auto output = model->addOperand(&type3);
     12   // Phase 2, operations
     13   static int32_t axis_init[] = {0, 2};
     14   model->setOperandValue(axis, axis_init, sizeof(int32_t) * 2);
     15   static int32_t keepDims_init[] = {1};
     16   model->setOperandValue(keepDims, keepDims_init, sizeof(int32_t) * 1);
     17   model->addOperation(ANEURALNETWORKS_MEAN, {input, axis, keepDims}, {output});
     18   // Phase 3, inputs and outputs
     19   model->identifyInputsAndOutputs(
     20     {input},
     21     {output});
     22   assert(model->isValid());
     23 }
     24 
     25 bool is_ignored(int i) {
     26   static std::set<int> ignore = {};
     27   return ignore.find(i) != ignore.end();
     28 }
     29