1// Generated file (from: batch_to_space_quant8_1.mod.py). Do not edit 2void CreateModel(Model *model) { 3 OperandType type1(Type::TENSOR_INT32, {2}); 4 OperandType type2(Type::TENSOR_QUANT8_ASYMM, {1, 4, 4, 1}, 1.0, 0); 5 OperandType type0(Type::TENSOR_QUANT8_ASYMM, {4, 2, 2, 1}, 1.0, 0); 6 // Phase 1, operands 7 auto input = model->addOperand(&type0); 8 auto block_size = model->addOperand(&type1); 9 auto output = model->addOperand(&type2); 10 // Phase 2, operations 11 static int32_t block_size_init[] = {2, 2}; 12 model->setOperandValue(block_size, block_size_init, sizeof(int32_t) * 2); 13 model->addOperation(ANEURALNETWORKS_BATCH_TO_SPACE_ND, {input, block_size}, {output}); 14 // Phase 3, inputs and outputs 15 model->identifyInputsAndOutputs( 16 {input}, 17 {output}); 18 assert(model->isValid()); 19} 20 21bool is_ignored(int i) { 22 static std::set<int> ignore = {}; 23 return ignore.find(i) != ignore.end(); 24} 25