基本信息
摘要:A method and a device for debugging an application, comprising: A PC determining a support status of each neural network operator in an online model; the PC dividing, according to the support status, the online model into a neural network part and a neural network operator part; the PC converting the neural network part into an offline model; and the PC packaging binary program operator information corresponding to the offline model and the neural network operator part into a program package of an application, and generating an application package having artificial intelligence capabilities, such that when an Android emulator of the PC runs the application package, the Android emulator calls an artificial intelligence engine framework of the PC and a hardware acceleration device to perform accelerated computation on the offline model, and executes a binary program operator corresponding to the binary program operator information. The method is used to improve the development efficiency of an application having artificial intelligent capabilities. L'invention concerne un procédé et un dispositif de débogage d'application. Dans le procédé selon l'invention : un PC détermine un état de support de chaque opérateur de réseau neuronal dans un modèle en ligne ; le PC sépare le modèle en ligne, en fonction de l'état de support, en une partie réseau neuronal et une partie opérateur de réseau neuronal ; le PC convertit la partie réseau neuronal en un modèle hors ligne ; et le PC conditionne les informations d'opérateur de programme binaire correspondant au modèle hors ligne et à la partie opérateur de réseau neuronal en un progiciel d'application, et génère un progiciel d'application doté de capacités d'intelligence artificielle, de sorte que, lorsqu'un émulateur Androïde du PC exécute le progiciel d'application, l'émulateur Androïde appelle un cadre de moteur d'intelligence artificielle du PC et un dispositif d'accélération matériel pour effectuer un calcul accéléré sur le modèle hors ligne, et exécute un opérateur de programme binaire correspondant aux informations d'opérateur de programme binaire. Le procédé selon l'invention sert à améliorer l'efficacité de développement d'une application dotée de capacités d'intelligence artificielle. 一种调试应用程序的方法及设备,包括:PC确定对在线模型中的各个神经网络算子的支持状态;所述PC根据所述支持状态,将所述在线模型拆分为神经网络部分和神经网络算子部分;所述PC将所述神经网络部分转换为离线模型;所述PC将所述离线模型、所述神经网络算子部分对应的二进制程序算子信息打包到应用程序的程序包中,生成具有人工智能能力的应用程序包,以使得所述PC的安卓模拟器运行所述应用程序包时,调用所述PC的人工智能引擎框架和硬件加速设备对所述离线模型进行加速运算,并执行所述二进制程序算子信息对应的二进制程序算子。该方法用以提高对具有人工智能能力的应用程序的开发效率。
摘要附图: