Home | History | Annotate | Download | only in models
      1 // Generated file (from: logistic_quant8_1.mod.py). Do not edit
      2 void CreateModel(Model *model) {
      3   OperandType type1(Type::TENSOR_QUANT8_ASYMM, {1, 2, 2, 1}, 0.00390625f, 0);
      4   OperandType type0(Type::TENSOR_QUANT8_ASYMM, {1, 2, 2, 1}, 0.5f, 0);
      5   // Phase 1, operands
      6   auto op1 = model->addOperand(&type0);
      7   auto op3 = model->addOperand(&type1);
      8   // Phase 2, operations
      9   model->addOperation(ANEURALNETWORKS_LOGISTIC, {op1}, {op3});
     10   // Phase 3, inputs and outputs
     11   model->identifyInputsAndOutputs(
     12     {op1},
     13     {op3});
     14   assert(model->isValid());
     15 }
     16 
     17 bool is_ignored(int i) {
     18   static std::set<int> ignore = {};
     19   return ignore.find(i) != ignore.end();
     20 }
     21