1// Generated file (from: pad_float_1.mod.py). Do not edit 2void CreateModel(Model *model) { 3 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 3, 1}); 4 OperandType type2(Type::TENSOR_FLOAT32, {1, 4, 7, 1}); 5 OperandType type1(Type::TENSOR_INT32, {4, 2}); 6 // Phase 1, operands 7 auto op1 = model->addOperand(&type0); 8 auto op2 = model->addOperand(&type1); 9 auto op3 = model->addOperand(&type2); 10 // Phase 2, operations 11 static int32_t op2_init[] = {0, 0, 0, 2, 1, 3, 0, 0}; 12 model->setOperandValue(op2, op2_init, sizeof(int32_t) * 8); 13 model->addOperation(ANEURALNETWORKS_PAD, {op1, op2}, {op3}); 14 // Phase 3, inputs and outputs 15 model->identifyInputsAndOutputs( 16 {op1}, 17 {op3}); 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