1224c01eb06d3dc496b99b0827fdcc9e65bfc4f9aDong Chen// Generated file (from: concat_float_1.mod.py). Do not edit 26e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chenvoid CreateModel(Model *model) { 36e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen OperandType type1(Type::INT32, {}); 46e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen OperandType type0(Type::TENSOR_FLOAT32, {2, 3}); 56e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen OperandType type2(Type::TENSOR_FLOAT32, {4, 3}); 66e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen // Phase 1, operands 76e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen auto op1 = model->addOperand(&type0); 86e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen auto op2 = model->addOperand(&type0); 96e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen auto axis0 = model->addOperand(&type1); 106e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen auto result = model->addOperand(&type2); 116e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen // Phase 2, operations 126e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen static int32_t axis0_init[] = {0}; 136e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen model->setOperandValue(axis0, axis0_init, sizeof(int32_t) * 1); 1493e086fbc0f1577eabdffd0d3420589f2788bd95Miao Wang model->addOperation(ANEURALNETWORKS_CONCATENATION, {op1, op2, axis0}, {result}); 156e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen // Phase 3, inputs and outputs 1666d5cb6e3a90aefc8d545f6369080ab88de9d667Jean-Luc Brouillet model->identifyInputsAndOutputs( 176e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen {op1, op2}, 186e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen {result}); 196e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen assert(model->isValid()); 206e4193a640d8610baad9cf88ed4675cfaa4fc874Dong Chen} 21ec8e1c71d11f7b5abe306e0c9c6af7da755bd46bI-Jui (Ray) Sung 22ec8e1c71d11f7b5abe306e0c9c6af7da755bd46bI-Jui (Ray) Sungbool is_ignored(int i) { 23ec8e1c71d11f7b5abe306e0c9c6af7da755bd46bI-Jui (Ray) Sung static std::set<int> ignore = {}; 24ec8e1c71d11f7b5abe306e0c9c6af7da755bd46bI-Jui (Ray) Sung return ignore.find(i) != ignore.end(); 25ec8e1c71d11f7b5abe306e0c9c6af7da755bd46bI-Jui (Ray) Sung} 26