| // clang-format off |
| // Generated file (from: logistic_quant8_2.mod.py). Do not edit |
| void CreateModel(Model *model) { |
| OperandType type0(Type::TENSOR_QUANT8_ASYMM, {1, 16, 16, 1}, 0.5f, 0); |
| OperandType type1(Type::TENSOR_QUANT8_ASYMM, {1, 16, 16, 1}, 0.00390625f, 0); |
| // Phase 1, operands |
| auto input = model->addOperand(&type0); |
| auto output = model->addOperand(&type1); |
| // Phase 2, operations |
| model->addOperation(ANEURALNETWORKS_LOGISTIC, {input}, {output}); |
| // Phase 3, inputs and outputs |
| model->identifyInputsAndOutputs( |
| {input}, |
| {output}); |
| assert(model->isValid()); |
| } |
| |
| inline bool is_ignored(int i) { |
| static std::set<int> ignore = {}; |
| return ignore.find(i) != ignore.end(); |
| } |
| |