1 // Generated file (from: relu1_quant8_2.mod.py). Do not edit 2 void CreateModel(Model *model) { 3 OperandType type0(Type::TENSOR_QUANT8_ASYMM, {2, 64, 64, 2}, 1.f, 128); 4 // Phase 1, operands 5 auto input = model->addOperand(&type0); 6 auto output = model->addOperand(&type0); 7 // Phase 2, operations 8 model->addOperation(ANEURALNETWORKS_RELU1, {input}, {output}); 9 // Phase 3, inputs and outputs 10 model->identifyInputsAndOutputs( 11 {input}, 12 {output}); 13 assert(model->isValid()); 14 } 15 16 bool is_ignored(int i) { 17 static std::set<int> ignore = {}; 18 return ignore.find(i) != ignore.end(); 19 } 20