WO2020034116A1 - Verification method for ai calculation results, and related products - Google Patents

Verification method for ai calculation results, and related products Download PDF

Info

Publication number
WO2020034116A1
WO2020034116A1 PCT/CN2018/100626 CN2018100626W WO2020034116A1 WO 2020034116 A1 WO2020034116 A1 WO 2020034116A1 CN 2018100626 W CN2018100626 W CN 2018100626W WO 2020034116 A1 WO2020034116 A1 WO 2020034116A1
Authority
WO
WIPO (PCT)
Prior art keywords
calculation
digest value
value
result
area
Prior art date
Application number
PCT/CN2018/100626
Other languages
French (fr)
Chinese (zh)
Inventor
牛昕宇
蔡权雄
Original Assignee
深圳鲲云信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳鲲云信息科技有限公司 filed Critical 深圳鲲云信息科技有限公司
Priority to CN201880004394.4A priority Critical patent/CN110036367A/en
Priority to PCT/CN2018/100626 priority patent/WO2020034116A1/en
Publication of WO2020034116A1 publication Critical patent/WO2020034116A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/02Comparing digital values
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/3017Runtime instruction translation, e.g. macros
    • G06F9/30178Runtime instruction translation, e.g. macros of compressed or encrypted instructions

Definitions

  • the present application relates to the field of computers and artificial intelligence technologies, and in particular, to a method for verifying the results of AI operations and related products.
  • the embodiments of the present application provide a verification of an AI operation result and a related product, which implements verification of an AI operation result by using a digest value, thereby speeding up comparison speed and improving efficiency.
  • an embodiment of the present application provides a method for verifying an AI calculation result.
  • the method includes the following steps:
  • Extract the reference result from the storage compress the reference result to obtain the reference digest value of the set length, compress the AI calculation result to obtain the calculated digest value of the set length, and input the reference digest value and the calculated digest value to Comparison unit
  • the comparison unit compares whether the reference digest value and the calculated digest value are consistent. If they are the same, it is determined that the n-th layer verification is passed. If they are not consistent, it is determined that the n-th layer verification is not passed, and an alarm message is issued.
  • the method further includes:
  • the reference digest value is stored in the memory, and when the calculation result of the nth layer AI is verified again, the reference digest value is directly obtained.
  • the method further includes:
  • a first area having the same value as the reference digest value and a second area having a different value for the calculated digest value are obtained, and a problem existing in the calculation engine is determined according to the analysis of the first area and the second area, and the problem is displayed.
  • the compression algorithm is an MD5 compression algorithm.
  • a verification system for AI calculation results includes: a storage, data extraction unit, a calculation engine, and a comparison unit.
  • a data extraction unit configured to read input data and parameter data of the AI calculation of the nth layer from the storage, and input the input data and parameter data to the calculation engine;
  • the calculation engine is configured to perform AI calculation on the input data and parameter data to obtain an AI calculation result
  • the data extraction unit is further configured to extract a reference result from the storage, compress the reference result to obtain a reference digest value of a set length, and compress the AI calculation result to obtain a calculated digest value of the set length, and refer to the digest
  • the value and calculation summary value are input to the comparison unit;
  • the comparison unit is configured to compare whether the reference digest value and the calculated digest value are consistent. If they are consistent, it is determined that the n-th layer verification is passed. If they are not consistent, it is determined that the n-th layer verification is not passed, and an alarm message is issued.
  • the data extraction unit is further configured to store the reference digest value in a memory, and directly obtain the reference digest value when verifying an n-th layer AI calculation result again.
  • the system further includes: an analysis unit,
  • the analysis unit is configured to obtain a first area of the same value of the reference digest value and a second area of the calculated digest value, and a second area of a different value, and determine a problem in the calculation engine according to the first area and the second area analysis, Show the problem.
  • the compression algorithm is an MD5 compression algorithm.
  • a computer-readable storage medium stores a computer program for electronic data interchange, wherein the computer program causes a computer to execute the method as provided in the second aspect.
  • a computer program product in a fourth aspect, includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the method provided in the second aspect.
  • the two data are input into the AI calculation engine for calculation to obtain the AI calculation result.
  • the two results are compressed to obtain two summary values.
  • the two summary values are compared to determine whether the verification is successful. Since the comparison does not require comparison of each element value, it has the advantages of reducing the amount of comparison data, improving the comparison efficiency, and reducing the comparison time.
  • Figure 1 is a schematic diagram of the structure of an AI system.
  • FIG. 2 is a schematic flowchart of a method for verifying an AI calculation result.
  • FIG. 3 is a schematic flowchart of another method for verifying an AI calculation result of the present application.
  • FIG. 4 is a structural diagram of a verification system for an AI calculation result provided by the present application.
  • an embodiment herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
  • the electronic device in this application may include: a server, a smart camera device, a smart phone (such as an Android phone, an iOS phone, a Windows Phone phone, etc.), a tablet computer, a handheld computer, a laptop computer, and a mobile Internet device (MID, Mobile Internet Devices) Or wearable devices, etc.
  • the above electronic devices are merely examples, not exhaustive, and include but are not limited to the above electronic devices.
  • the above electronic devices are referred to as user equipment (UE), Terminal or electronic device.
  • UE user equipment
  • Terminal the above-mentioned user equipment is not limited to the above-mentioned realization form, and may include, for example, a smart vehicle terminal, a computer device, and the like.
  • FIG. 1 is a schematic diagram of an AI system.
  • the system includes storage, a computing engine (with detection hardware), and a CPU.
  • the storage part includes reference data, reference parameters, and reference results of the network model.
  • the reference data may specifically be AI input data, AI weight data, and so on.
  • the function of the hardware calculation engine is equivalent to the AI network accelerator, which can be implemented by FPGA devices, GPUs or ASICs.
  • the comparison unit reads the values from the two files of the reference result and the actual result, and compares each value. During each network test, the comparison value reached tens of millions. Through comparison unit improvement and optimization, the result file is pre-processed. Both the reference result and the actual result are compressed into a 1024bits summary value by the compression module. In this way, only the two 1024bits digest values need to be compared, and the two 1024bits digest values can be compared to realize the correctness of the AI calculation result.
  • the verification of the AI calculation results is generally the verification of the AI calculation engine. If the AI calculation engine is modified, it may have deviations in the calculation results. For example, in a possible case, if the AI calculation has 10 steps There are only 9 steps in the AI calculation engine, so the calculation results will have a certain deviation, so after the AI calculation engine changes, a large deviation will occur, so the AI calculation results need to be verified.
  • FIG. 2 is a method for verifying an AI calculation result.
  • the method is implemented in the system shown in FIG. 1.
  • the method shown in FIG. 2 includes the following steps:
  • Step S201 Read the input data and parameter data of the AI calculation of the nth layer from the storage, and input the input data and parameter data to the calculation engine to execute the AI calculation to obtain the AI calculation result;
  • Step S202 Extract a reference result from the storage, compress the reference result to obtain a reference digest value of a set length, compress the AI calculation result to obtain a calculated digest value of a set length, and compare the reference digest value with the calculated digest. Enter the value into the comparison unit;
  • the algorithm for the compression processing in step S202 may specifically be an MD5 (MD5 Message-Digest Algorithm) version 5 compression algorithm.
  • MD5 MD5 Message-Digest Algorithm
  • other compression algorithms may also be used. This application It does not limit the specific expression of the above compression algorithm.
  • the above-mentioned set length includes, but is not limited to, values of 128 bits, 256 bits, 1024 bits, and the like.
  • Step S203 The comparison unit compares whether the reference digest value and the calculated digest value are consistent. If they are consistent, it is determined that the n-th level verification is passed. If they are not consistent, it is determined that the n-th level verification is not passed, and an alarm message is issued.
  • the two data are input into the AI calculation engine for calculation to obtain the AI calculation result.
  • the two results are compressed to obtain two summary values.
  • the summary values are compared to determine whether the verification is successful. Since the comparison does not require individual element values for comparison, it has the advantages of reducing the amount of comparison data, improving the comparison efficiency, and reducing the comparison time.
  • the method may further include:
  • the reference digest value is stored in the memory, and when the calculation result of the nth layer AI is verified again, the reference digest value is directly obtained.
  • the reference digest value is stored, so that in the subsequent comparison process, the reference value does not need to be compressed, and the reference digest value can be directly extracted, which saves the calculation overhead.
  • the method may further include:
  • a first area having the same value as the reference digest value and a second area having a different value for the calculated digest value are obtained, and a problem existing in the calculation engine is determined according to the analysis of the first area and the second area, and the problem is displayed.
  • This technical solution is to determine the problems of the computing engine based on the first region and the second region, because for the computing engine, if one of its steps is missing, its AI calculation results will have a certain regular behavior, and the missing steps Different, the regularity of the AI calculation results may be different, then by analyzing the first region and the second region, you can roughly obtain the steps (that is, problems) that the computing engine lacks, so as to optimize for subsequent debugging, such as in In the convolution calculation, if there are no subsequent steps, such as the pooling step, the AI calculation results will be the same and different periodically. Then, determining the corresponding first region and the second region can determine that the calculation engine lacks the corresponding step.
  • FIG. 3 is a method for verifying an AI calculation result provided by an embodiment of the present application.
  • the method includes the following steps:
  • Step S301 Read reference data and reference parameters from the storage unit to the hardware engine
  • Step S302 Whether the calculation of all the layers of the network is finished. If the last layer, go to step S303. If it is not the last layer, go to step S304.
  • Step S303 Exit the network.
  • Step S304 the hardware engine calculates the AI layer
  • Step S305 the hardware stores the actual result and saves it to a file
  • Step S306 the CPU reads the reference result and performs preprocessing to obtain a digest value digest_ext
  • Step S307 The CPU reads the actual result and performs preprocessing to obtain the digest value digest_act
  • Step S308 Compare whether digest_ext and digest_act are the same. If they are the same, proceed to step S302. If they are not, proceed to step S309.
  • Step S309 alarm fail and exit the network.
  • FIG. 4 provides an AI calculation result verification system.
  • the system includes: a storage 401, a data extraction unit 402, a calculation engine 403, and a comparison unit 404.
  • a data extraction unit configured to read input data and parameter data of the AI calculation of the nth layer from the storage, and input the input data and parameter data to the calculation engine;
  • the calculation engine is configured to perform AI calculation on the input data and parameter data to obtain an AI calculation result
  • the data extraction unit is further configured to extract a reference result from the storage, compress the reference result to obtain a reference digest value of a set length, and compress the AI calculation result to obtain a calculated digest value of a set length, and refer to the digest.
  • the value and calculation summary value are input to the comparison unit;
  • the comparison unit is configured to compare whether the reference digest value is consistent with the calculated digest value. If the reference digest value is consistent, it is determined that the n-th layer verification is passed.
  • the data extraction unit is further configured to store the reference digest value in a memory, and directly obtain the reference digest value when verifying an n-th layer AI calculation result again.
  • the system further includes: an analysis unit 405,
  • the analysis unit is configured to obtain a first area of the same value of the reference digest value and a second area of the calculated digest value, and a second area of a different value, and determine a problem in the calculation engine according to the first area and the second area analysis, Show the problem.
  • the compression algorithm is an MD5 compression algorithm.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to perform verification of any one of the AI calculation results described in the foregoing method embodiments. Part or all of the steps of the method.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations described in the foregoing method embodiments. Part or all of the steps in any method of verifying AI calculation results.
  • processors and chips in the various embodiments of the present application may be integrated in one processing unit, or may exist separately physically, or two or more pieces of hardware may be integrated in one unit.
  • the computer-readable storage medium or computer-readable program may be stored in a computer-readable memory.
  • the technical solution of the present application essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory.
  • Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
  • the foregoing memories include: U disks, Read-Only Memory (ROM), Random Access Memory (RAM), mobile hard disks, magnetic disks, or optical disks and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include a flash disk.
  • ROM Read-only memory
  • RAM Random Access Memory
  • magnetic disks or optical disks etc.

Abstract

Provided are a verification method for AI calculation results, and related products. The method comprises the following steps: reading input data and parameter data of an n-th layer of AI calculation from storage, and inputting the input data and the parameter data into a calculation engine to perform AI calculation so as to obtain an AI calculation result; extracting a reference result from the storage, compressing the reference result to obtain a reference digest value of a set length, and compressing the AI calculation result to obtain a calculation digest value of a set length, and then inputting the reference digest value and the calculation digest value into a comparison unit; and the comparison unit comparing the reference digest value with the calculation digest value, and if they are consistent, determining that the nth layer of verification is passed, and if they are not consistent, determining that the nth layer of verification fails, and sending alarm information. The present application has the advantage of a high efficiency.

Description

一种AI运算结果的验证方法及相关产品Method for verifying AI operation results and related products 技术领域Technical field
本申请涉及计算机以及人工智能技术领域,具体涉及一种AI运算结果的验证方法及相关产品。The present application relates to the field of computers and artificial intelligence technologies, and in particular, to a method for verifying the results of AI operations and related products.
背景技术Background technique
近年来AI不断的爆发热潮,与设备计算能力,深度学习网络结构的发展分不开。当整个网络的计算都使用浮点计算,会对CPU造成很大的计算依赖。如果可以把数据由浮点转换成定点值,在硬件设备并行处理定点计算,则可提高网络计算能力。In recent years, the continuous explosion of AI has been inseparable from the development of device computing capabilities and deep learning network structures. When the calculation of the entire network uses floating-point calculation, it will cause a large computational dependency on the CPU. If the data can be converted from floating-point to fixed-point values, and fixed-point calculations can be processed in parallel on hardware devices, network computing capabilities can be improved.
在硬件设计中,常常需要检验是否满足某个网络,需要把参考数据,参考参数输入到网络中计算,得到实际结果。由实际结果与参考结果进行一一比对。从而来确定硬件是否满足某网络计算。现有的一一比对的方式对于AI运算结果的验证的效率低,时间长。In hardware design, it is often necessary to verify whether a certain network is satisfied, and reference data and reference parameters need to be input into the network for calculation to obtain actual results. Compare the actual results with the reference results one by one. In order to determine whether the hardware meets a certain network calculation. The existing one-to-one comparison method has low efficiency and long time for verifying AI operation results.
申请内容Application content
本申请实施例提供了一种AI运算结果的验证及相关产品,其通过摘要值来实现对AI运算结果的验证,从而加快比对速度以及提高效率。The embodiments of the present application provide a verification of an AI operation result and a related product, which implements verification of an AI operation result by using a digest value, thereby speeding up comparison speed and improving efficiency.
第一方面,本申请实施例提供一种AI计算结果的验证方法,所述方法包括如下步骤:In a first aspect, an embodiment of the present application provides a method for verifying an AI calculation result. The method includes the following steps:
从存储中读取第n层的AI计算的输入数据和参数数据,将该输入数据和参数数据输入到计算引擎执行AI计算得到AI计算结果;Read the input data and parameter data of the AI calculation of the nth layer from the storage, and input the input data and parameter data to the calculation engine to perform the AI calculation to obtain the AI calculation result;
从存储中提取参考结果,对该参考结果进行压缩处理得到设定长度的参考摘要值,对该AI计算结果进行压缩处理得到设定长度的计算摘要值,将参考摘要值与计算摘要值输入到比对单元;Extract the reference result from the storage, compress the reference result to obtain the reference digest value of the set length, compress the AI calculation result to obtain the calculated digest value of the set length, and input the reference digest value and the calculated digest value to Comparison unit
比对单元比对该参考摘要值与计算摘要值是否一致,如一致,确定第n层 验证通过,如不一致,确定第n层验证不通过,并发出告警信息。The comparison unit compares whether the reference digest value and the calculated digest value are consistent. If they are the same, it is determined that the n-th layer verification is passed. If they are not consistent, it is determined that the n-th layer verification is not passed, and an alarm message is issued.
可选的,在确定不一致时,所述方法还包括:Optionally, when the inconsistency is determined, the method further includes:
将该参考摘要值存入存储器,再次进行第n层AI计算结果验证时,直接获取该参考摘要值。The reference digest value is stored in the memory, and when the calculation result of the nth layer AI is verified again, the reference digest value is directly obtained.
可选的,在确定不一致时,所述方法还包括:Optionally, when the inconsistency is determined, the method further includes:
获取该参考摘要值与该计算摘要值的相同值的第一区域以及不相同值的第二区域,依据第一区域和第二区域分析确定该计算引擎存在的问题,将该问题显示。A first area having the same value as the reference digest value and a second area having a different value for the calculated digest value are obtained, and a problem existing in the calculation engine is determined according to the analysis of the first area and the second area, and the problem is displayed.
可选的,所述压缩算法为MD5压缩算法。Optionally, the compression algorithm is an MD5 compression algorithm.
第二方面,提供一种AI计算结果的验证系统,所述系统包括:存储、数据提取单元,计算引擎和比对单元,其中,In a second aspect, a verification system for AI calculation results is provided. The system includes: a storage, data extraction unit, a calculation engine, and a comparison unit.
数据提取单元,用于从存储中读取第n层的AI计算的输入数据和参数数据,将该输入数据和参数数据输入到计算引擎;A data extraction unit, configured to read input data and parameter data of the AI calculation of the nth layer from the storage, and input the input data and parameter data to the calculation engine;
所述计算引擎,用于将该输入数据和参数数据执行AI计算得到AI计算结果;The calculation engine is configured to perform AI calculation on the input data and parameter data to obtain an AI calculation result;
数据提取单元,还用于从存储中提取参考结果,对该参考结果进行压缩处理得到设定长度的参考摘要值,对该AI计算结果进行压缩处理得到设定长度的计算摘要值,将参考摘要值与计算摘要值输入到比对单元;The data extraction unit is further configured to extract a reference result from the storage, compress the reference result to obtain a reference digest value of a set length, and compress the AI calculation result to obtain a calculated digest value of the set length, and refer to the digest The value and calculation summary value are input to the comparison unit;
所述比对单元,用于比对该参考摘要值与计算摘要值是否一致,如一致,确定第n层验证通过,如不一致,确定第n层验证不通过,并发出告警信息。The comparison unit is configured to compare whether the reference digest value and the calculated digest value are consistent. If they are consistent, it is determined that the n-th layer verification is passed. If they are not consistent, it is determined that the n-th layer verification is not passed, and an alarm message is issued.
可选的,在确定不一致时,Optionally, when inconsistencies are determined,
所述数据提取单元,还用于将该参考摘要值存入存储器,再次进行第n层AI计算结果验证时,直接获取该参考摘要值。The data extraction unit is further configured to store the reference digest value in a memory, and directly obtain the reference digest value when verifying an n-th layer AI calculation result again.
可选的,在确定不一致时,所述系统还包括:分析单元,Optionally, when the inconsistency is determined, the system further includes: an analysis unit,
所述分析单元,用于获取该参考摘要值与该计算摘要值的相同值的第一区域以及不相同值的第二区域,依据第一区域和第二区域分析确定该计算引擎存在的问题,将该问题显示。The analysis unit is configured to obtain a first area of the same value of the reference digest value and a second area of the calculated digest value, and a second area of a different value, and determine a problem in the calculation engine according to the first area and the second area analysis, Show the problem.
可选的,所述压缩算法为MD5压缩算法。Optionally, the compression algorithm is an MD5 compression algorithm.
第三方面,提供一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如第二方面提供的方法。In a third aspect, a computer-readable storage medium is provided that stores a computer program for electronic data interchange, wherein the computer program causes a computer to execute the method as provided in the second aspect.
第四方面,提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行第二方面提供的方法。In a fourth aspect, a computer program product is provided. The computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the method provided in the second aspect.
实施本申请实施例,具有如下有益效果:The implementation of the embodiments of the present application has the following beneficial effects:
可以看出,本申请提供的技术方案获取输入数据和参数数据以后,将两个数据输入到AI计算引擎中进行计算得到AI计算结果,提取参考结果以后,对两个结果压缩得到两个摘要值,对两个摘要值进行比对来确定是否验证通过,由于其比对无需一个个元素值来进行比对,所以其具有减少比对数据量,提高比对效率,减少比对时间的优点。It can be seen that after obtaining the input data and parameter data in the technical solution provided by this application, the two data are input into the AI calculation engine for calculation to obtain the AI calculation result. After extracting the reference result, the two results are compressed to obtain two summary values. The two summary values are compared to determine whether the verification is successful. Since the comparison does not require comparison of each element value, it has the advantages of reducing the amount of comparison data, improving the comparison efficiency, and reducing the comparison time.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application. Those of ordinary skill in the art can obtain other drawings according to the drawings without paying creative labor.
图1是一种AI系统的结构示意图。Figure 1 is a schematic diagram of the structure of an AI system.
图2是一种AI计算结果的验证方法的流程示意图。FIG. 2 is a schematic flowchart of a method for verifying an AI calculation result.
图3是本申请的另一种AI计算结果的验证方法的流程示意图。FIG. 3 is a schematic flowchart of another method for verifying an AI calculation result of the present application.
图4是本申请提供的一种AI计算结果的验证系统的结构图。FIG. 4 is a structural diagram of a verification system for an AI calculation result provided by the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In the following, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请的说明书和权利要求书及所述附图中的术语“包括”和“具有”以 及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "including" and "having" in the specification and claims of the present application and the accompanying drawings, as well as any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device containing a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "an embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请中的电子装置可以包括:服务器、智能摄像设备、智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述电子装置仅是举例,而非穷举,包含但不限于上述电子装置,为了描述的方便,下面实施例中将上述电子装置称为用户设备(User equipment,UE)、终端或电子设备。当然在实际应用中,上述用户设备也不限于上述变现形式,例如还可以包括:智能车载终端、计算机设备等等。The electronic device in this application may include: a server, a smart camera device, a smart phone (such as an Android phone, an iOS phone, a Windows Phone phone, etc.), a tablet computer, a handheld computer, a laptop computer, and a mobile Internet device (MID, Mobile Internet Devices) Or wearable devices, etc., the above electronic devices are merely examples, not exhaustive, and include but are not limited to the above electronic devices. For convenience of description, the above electronic devices are referred to as user equipment (UE), Terminal or electronic device. Of course, in practical applications, the above-mentioned user equipment is not limited to the above-mentioned realization form, and may include, for example, a smart vehicle terminal, a computer device, and the like.
参阅图1,图1为一种AI系统的示意图。如图1所示,系统包括存储,计算引擎(带检测的硬件)和CPU。Please refer to FIG. 1, which is a schematic diagram of an AI system. As shown in Figure 1, the system includes storage, a computing engine (with detection hardware), and a CPU.
其中存储部分有参考数据,参考参数及网络模型的参考结果,对于参考数据具体可以为,AI的输入数据,AI的权值数据等等。The storage part includes reference data, reference parameters, and reference results of the network model. The reference data may specifically be AI input data, AI weight data, and so on.
硬件计算引擎的功能相当于AI网络加速器,可以是FPGA器件,GPU或者ASIC实现。The function of the hardware calculation engine is equivalent to the AI network accelerator, which can be implemented by FPGA devices, GPUs or ASICs.
比对单元(CPU)从参考结果和实际结果这两个文件分别读出数值,对每个数值进行比对。每个网络测试时,比对数值达到数千万。通过比对单元改善优化,对结果文件进行预处理。通过压缩模块对参考结果和实际结果都压缩成1024bits摘要值。这样只需比对两个1024bits的摘要值,对两个1024bits的摘要值进行比对即能够实现对于AI计算结果正确性进行验证。The comparison unit (CPU) reads the values from the two files of the reference result and the actual result, and compares each value. During each network test, the comparison value reached tens of millions. Through comparison unit improvement and optimization, the result file is pre-processed. Both the reference result and the actual result are compressed into a 1024bits summary value by the compression module. In this way, only the two 1024bits digest values need to be compared, and the two 1024bits digest values can be compared to realize the correctness of the AI calculation result.
对于AI计算结果的验证一般是对AI计算引擎的验证,对于AI计算引擎 如果其经过改动,那么其可能出现计算结果的偏差,例如,在一种可能的情况下,如果AI计算具有10个步骤,AI计算引擎只有9个步骤,那么其计算结果就会具有一定的偏差,那么对于AI计算引擎变动以后,就会出现很大的偏差,所以需要对AI计算结果进行验证。The verification of the AI calculation results is generally the verification of the AI calculation engine. If the AI calculation engine is modified, it may have deviations in the calculation results. For example, in a possible case, if the AI calculation has 10 steps There are only 9 steps in the AI calculation engine, so the calculation results will have a certain deviation, so after the AI calculation engine changes, a large deviation will occur, so the AI calculation results need to be verified.
参阅图2,图2为一种AI计算结果的验证方法,该方法在如图1所示的系统中实现,该方法如图2所示,包括如下步骤:Referring to FIG. 2, FIG. 2 is a method for verifying an AI calculation result. The method is implemented in the system shown in FIG. 1. The method shown in FIG. 2 includes the following steps:
步骤S201、从存储中读取第n层的AI计算的输入数据和参数数据,将该输入数据和参数数据输入到计算引擎执行AI计算得到AI计算结果;Step S201: Read the input data and parameter data of the AI calculation of the nth layer from the storage, and input the input data and parameter data to the calculation engine to execute the AI calculation to obtain the AI calculation result;
步骤S202、从存储中提取参考结果,对该参考结果进行压缩处理得到设定长度的参考摘要值,对该AI计算结果进行压缩处理得到设定长度的计算摘要值,将参考摘要值与计算摘要值输入到比对单元;Step S202: Extract a reference result from the storage, compress the reference result to obtain a reference digest value of a set length, compress the AI calculation result to obtain a calculated digest value of a set length, and compare the reference digest value with the calculated digest. Enter the value into the comparison unit;
可选的,上述步骤S202中的压缩处理的算法具体可以为MD5(MD5 Message-Digest Algorithm,消息摘要算法第五版)压缩算法,当然在实际应用中,还可以是其他的压缩算法,本申请并不限制上述压缩算法的具体表现形式。上述设定长度包括但不限于:128比特、256比特、1024比特等等值。Optionally, the algorithm for the compression processing in step S202 may specifically be an MD5 (MD5 Message-Digest Algorithm) version 5 compression algorithm. Of course, in actual applications, other compression algorithms may also be used. This application It does not limit the specific expression of the above compression algorithm. The above-mentioned set length includes, but is not limited to, values of 128 bits, 256 bits, 1024 bits, and the like.
步骤S203、比对单元比对该参考摘要值与计算摘要值是否一致,如一致,确定第n层验证通过,如不一致,确定第n层验证不通过,并发出告警信息。Step S203: The comparison unit compares whether the reference digest value and the calculated digest value are consistent. If they are consistent, it is determined that the n-th level verification is passed. If they are not consistent, it is determined that the n-th level verification is not passed, and an alarm message is issued.
本申请提供的技术方案获取输入数据和参数数据以后,将两个数据输入到AI计算引擎中进行计算得到AI计算结果,提取参考结果以后,对两个结果压缩得到两个摘要值,对两个摘要值进行比对来确定是否验证通过,由于其比对无需一个个元素值来进行比对,所以其具有减少比对数据量,提高比对效率,减少比对时间的优点。After obtaining the input data and parameter data in the technical solution provided by the present application, the two data are input into the AI calculation engine for calculation to obtain the AI calculation result. After extracting the reference result, the two results are compressed to obtain two summary values. The summary values are compared to determine whether the verification is successful. Since the comparison does not require individual element values for comparison, it has the advantages of reducing the amount of comparison data, improving the comparison efficiency, and reducing the comparison time.
可选的,上述方法在确定不一致时,还可以包括:Optionally, when the above method is determined to be inconsistent, the method may further include:
将该参考摘要值存入存储器,再次进行第n层AI计算结果验证时,直接获取该参考摘要值。The reference digest value is stored in the memory, and when the calculation result of the nth layer AI is verified again, the reference digest value is directly obtained.
该方法是将该参考摘要值进行存储,这样在后续的比对过程中,就无需对参考值进行压缩处理,直接提取该参考摘要值即可,节省了计算的开销。In this method, the reference digest value is stored, so that in the subsequent comparison process, the reference value does not need to be compressed, and the reference digest value can be directly extracted, which saves the calculation overhead.
可选的,上述方法在确定不一致时,还可以包括:Optionally, when the above method is determined to be inconsistent, the method may further include:
获取该参考摘要值与该计算摘要值的相同值的第一区域以及不相同值的第二区域,依据第一区域和第二区域分析确定该计算引擎存在的问题,将该问题显示。A first area having the same value as the reference digest value and a second area having a different value for the calculated digest value are obtained, and a problem existing in the calculation engine is determined according to the analysis of the first area and the second area, and the problem is displayed.
该技术方案为依据第一区域和第二区域来确定该计算引擎存在的问题,因为对于计算引擎来说,如果其一个步骤缺少,那么其AI计算结果会有一定的规律行,并且缺少的步骤不同,其AI计算结果的规律性可能不同,那么通过对该第一区域和第二区域的分析即能够大致获得该计算引擎缺少的步骤(即问题),从而为后续的调试进行优化,例如在卷积计算时,如果缺少后续步骤,例如池化步骤,那么AI计算结果会周期性的相同、不同,那么确定对应的第一区域和第二区域即能够确定该计算引擎缺少对应的步骤。This technical solution is to determine the problems of the computing engine based on the first region and the second region, because for the computing engine, if one of its steps is missing, its AI calculation results will have a certain regular behavior, and the missing steps Different, the regularity of the AI calculation results may be different, then by analyzing the first region and the second region, you can roughly obtain the steps (that is, problems) that the computing engine lacks, so as to optimize for subsequent debugging, such as in In the convolution calculation, if there are no subsequent steps, such as the pooling step, the AI calculation results will be the same and different periodically. Then, determining the corresponding first region and the second region can determine that the calculation engine lacks the corresponding step.
参阅图3,图3为本申请实施例提供的一种AI计算结果的验证方法,该方法包括如下步骤:Referring to FIG. 3, FIG. 3 is a method for verifying an AI calculation result provided by an embodiment of the present application. The method includes the following steps:
步骤S301:从存储单元读取参考数据及参考参数到硬件引擎Step S301: Read reference data and reference parameters from the storage unit to the hardware engine
步骤S302:网络所有层计算是否结束,若最后一层,进入步骤S303,如果不是最后一层,则进入步骤S304Step S302: Whether the calculation of all the layers of the network is finished. If the last layer, go to step S303. If it is not the last layer, go to step S304.
步骤S303:退出网络。Step S303: Exit the network.
步骤S304:硬件引擎计算AI层Step S304: the hardware engine calculates the AI layer
步骤S305:硬件存放实际结果及保存到文件中Step S305: the hardware stores the actual result and saves it to a file
步骤S306:CPU读取参考结果,进行预处理,得到摘要值digest_extStep S306: the CPU reads the reference result and performs preprocessing to obtain a digest value digest_ext
步骤S307:CPU读取实际结果,进行预处理,得到摘要值digest_actStep S307: The CPU reads the actual result and performs preprocessing to obtain the digest value digest_act
步骤S308:比对digest_ext和digest_act是否一致,若是一致,进入步骤S302,若不一致,进入步骤S309Step S308: Compare whether digest_ext and digest_act are the same. If they are the same, proceed to step S302. If they are not, proceed to step S309.
步骤S309:告警fail及退出网络。Step S309: alarm fail and exit the network.
参阅图4,图4提供了一种AI计算结果的验证系统,所述系统包括:存储401、数据提取单元402,计算引擎403和比对单元404,其中,Referring to FIG. 4, FIG. 4 provides an AI calculation result verification system. The system includes: a storage 401, a data extraction unit 402, a calculation engine 403, and a comparison unit 404.
数据提取单元,用于从存储中读取第n层的AI计算的输入数据和参数数 据,将该输入数据和参数数据输入到计算引擎;A data extraction unit, configured to read input data and parameter data of the AI calculation of the nth layer from the storage, and input the input data and parameter data to the calculation engine;
所述计算引擎,用于将该输入数据和参数数据执行AI计算得到AI计算结果;The calculation engine is configured to perform AI calculation on the input data and parameter data to obtain an AI calculation result;
数据提取单元,还用于从存储中提取参考结果,对该参考结果进行压缩处理得到设定长度的参考摘要值,对该AI计算结果进行压缩处理得到设定长度的计算摘要值,将参考摘要值与计算摘要值输入到比对单元;The data extraction unit is further configured to extract a reference result from the storage, compress the reference result to obtain a reference digest value of a set length, and compress the AI calculation result to obtain a calculated digest value of a set length, and refer to the digest. The value and calculation summary value are input to the comparison unit;
所述比对单元,用于比对该参考摘要值与计算摘要值是否一致,如一致,确定第n层验证通过,如不一致,确定第n层验证不通过,并发出告警信息。The comparison unit is configured to compare whether the reference digest value is consistent with the calculated digest value. If the reference digest value is consistent, it is determined that the n-th layer verification is passed.
可选的,在确定不一致时,Optionally, when inconsistencies are determined,
所述数据提取单元,还用于将该参考摘要值存入存储器,再次进行第n层AI计算结果验证时,直接获取该参考摘要值。The data extraction unit is further configured to store the reference digest value in a memory, and directly obtain the reference digest value when verifying an n-th layer AI calculation result again.
可选的,在确定不一致时,所述系统还包括:分析单元405,Optionally, when the inconsistency is determined, the system further includes: an analysis unit 405,
所述分析单元,用于获取该参考摘要值与该计算摘要值的相同值的第一区域以及不相同值的第二区域,依据第一区域和第二区域分析确定该计算引擎存在的问题,将该问题显示。The analysis unit is configured to obtain a first area of the same value of the reference digest value and a second area of the calculated digest value, and a second area of a different value, and determine a problem in the calculation engine according to the first area and the second area analysis, Show the problem.
可选的,所述压缩算法为MD5压缩算法。Optionally, the compression algorithm is an MD5 compression algorithm.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种AI计算结果的验证的方法的部分或全部步骤。An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to perform verification of any one of the AI calculation results described in the foregoing method embodiments. Part or all of the steps of the method.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种AI计算结果的验证的方法的部分或全部步骤。An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations described in the foregoing method embodiments. Part or all of the steps in any method of verifying AI calculation results.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action order. Because according to the present application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not described in detail in one embodiment, reference may be made to related descriptions in other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are merely schematic
另外,在本申请各个实施例中的处理器、芯片可以集成在一个处理单元中,也可以是单独物理存在,也可以两个或两个以上硬件集成在一个单元中。计算机可读存储介质或计算机可读程序可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the processors and chips in the various embodiments of the present application may be integrated in one processing unit, or may exist separately physically, or two or more pieces of hardware may be integrated in one unit. The computer-readable storage medium or computer-readable program may be stored in a computer-readable memory. Based on such an understanding, the technical solution of the present application essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. The foregoing memories include: U disks, Read-Only Memory (ROM), Random Access Memory (RAM), mobile hard disks, magnetic disks, or optical disks and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be completed by a program instructing related hardware. The program may be stored in a computer-readable memory, and the memory may include a flash disk. , Read-only memory (English: Read-Only Memory, referred to as ROM), random access device (English: Random Access Memory, referred to as RAM), magnetic disks or optical disks, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above. Specific examples have been used in this document to explain the principles and implementation of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. Persons of ordinary skill in the art may change the specific implementation and application scope according to the idea of the present application. In summary, the content of this description should not be construed as a limitation on the present application.

Claims (10)

  1. 一种AI计算结果的验证方法,其特征在于,所述方法包括如下步骤:A method for verifying an AI calculation result, characterized in that the method includes the following steps:
    从存储中读取第n层的AI计算的输入数据和参数数据,将该输入数据和参数数据输入到计算引擎执行AI计算得到AI计算结果;Read the input data and parameter data of the AI calculation of the nth layer from the storage, and input the input data and parameter data to the calculation engine to perform the AI calculation to obtain the AI calculation result;
    从存储中提取参考结果,对该参考结果进行压缩处理得到设定长度的参考摘要值,对该AI计算结果进行压缩处理得到设定长度的计算摘要值,将参考摘要值与计算摘要值输入到比对单元;Extract the reference result from the storage, compress the reference result to obtain the reference digest value of the set length, compress the AI calculation result to obtain the calculated digest value of the set length, and input the reference digest value and the calculated digest value to Comparison unit
    比对单元比对该参考摘要值与计算摘要值是否一致,如一致,确定第n层验证通过,如不一致,确定第n层验证不通过,并发出告警信息。The comparison unit compares whether the reference digest value and the calculated digest value are consistent. If they are consistent, it is determined that the n-th layer verification is passed. If they are not consistent, it is determined that the n-th level verification is not passed, and an alarm message is issued.
  2. 根据权利要求1所述的方法,其特征在于,在确定不一致时,所述方法还包括:The method according to claim 1, wherein, when the inconsistency is determined, the method further comprises:
    将该参考摘要值存入存储器,再次进行第n层AI计算结果验证时,直接获取该参考摘要值。The reference digest value is stored in the memory, and when the calculation result of the nth layer AI is verified again, the reference digest value is directly obtained.
  3. 根据权利要求1所述的方法,其特征在于,在确定不一致时,所述方法还包括:The method according to claim 1, wherein, when the inconsistency is determined, the method further comprises:
    获取该参考摘要值与该计算摘要值的相同值的第一区域以及不相同值的第二区域,依据第一区域和第二区域分析确定该计算引擎存在的问题,将该问题显示。A first area having the same value as the reference digest value and a second area having a different value for the calculated digest value are obtained, and a problem existing in the calculation engine is determined according to the analysis of the first area and the second area, and the problem is displayed.
  4. 根据权利要求1-3任意一项所述的方法,其特征在于,The method according to any one of claims 1-3, characterized in that:
    所述压缩算法为MD5压缩算法。The compression algorithm is an MD5 compression algorithm.
  5. 一种AI计算结果的验证系统,其特征在于,所述系统包括:存储、数据提取单元,计算引擎和比对单元,其中,A verification system for AI calculation results, characterized in that the system includes: a storage, data extraction unit, a calculation engine, and a comparison unit, wherein:
    数据提取单元,用于从存储中读取第n层的AI计算的输入数据和参数数据,将该输入数据和参数数据输入到计算引擎;A data extraction unit, configured to read input data and parameter data of the AI calculation of the nth layer from the storage, and input the input data and parameter data to the calculation engine;
    所述计算引擎,用于将该输入数据和参数数据执行AI计算得到AI计算结果;The calculation engine is configured to perform AI calculation on the input data and parameter data to obtain an AI calculation result;
    数据提取单元,还用于从存储中提取参考结果,对该参考结果进行压缩处理得到设定长度的参考摘要值,对该AI计算结果进行压缩处理得到设定长度的计算摘要值,将参考摘要值与计算摘要值输入到比对单元;The data extraction unit is further configured to extract a reference result from the storage, compress the reference result to obtain a reference digest value of a set length, and compress the AI calculation result to obtain a calculated digest value of a set length, and refer to the digest. The value and calculation summary value are input to the comparison unit;
    所述比对单元,用于比对该参考摘要值与计算摘要值是否一致,如一致,确定第n层验证通过,如不一致,确定第n层验证不通过,并发出告警信息。The comparison unit is configured to compare whether the reference digest value is consistent with the calculated digest value. If the reference digest value is consistent, it is determined that the n-th layer verification is passed.
  6. 根据权利要求5所述的系统,其特征在于,在确定不一致时,The system according to claim 5, wherein, when the inconsistency is determined,
    所述数据提取单元,还用于将该参考摘要值存入存储器,再次进行第n层AI计算结果验证时,直接获取该参考摘要值。The data extraction unit is further configured to store the reference digest value in a memory, and directly obtain the reference digest value when verifying an n-th layer AI calculation result again.
  7. 根据权利要求5所述的系统,其特征在于,在确定不一致时,所述系统还包括:分析单元,The system according to claim 5, wherein when it is determined that the inconsistency, the system further comprises: an analysis unit,
    所述分析单元,用于获取该参考摘要值与该计算摘要值的相同值的第一区域以及不相同值的第二区域,依据第一区域和第二区域分析确定该计算引擎存在的问题,将该问题显示。The analysis unit is configured to obtain a first area of the same value of the reference digest value and a second area of the calculated digest value, and a second area of a different value, and determine a problem in the calculation engine according to the first area and the second area analysis, Show the problem.
  8. 根据权利要求5-7任意一项所述的系统,其特征在于,The system according to any one of claims 5-7, wherein:
    所述压缩算法为MD5压缩算法。The compression algorithm is an MD5 compression algorithm.
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-4中任意一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the computer program according to any one of claims 1-4. Methods.
  10. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-4中任意一项所述的方法。A computer program product, characterized in that the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of claims 1-4 The method described.
PCT/CN2018/100626 2018-08-15 2018-08-15 Verification method for ai calculation results, and related products WO2020034116A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880004394.4A CN110036367A (en) 2018-08-15 2018-08-15 A kind of verification method and Related product of AI operation result
PCT/CN2018/100626 WO2020034116A1 (en) 2018-08-15 2018-08-15 Verification method for ai calculation results, and related products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/100626 WO2020034116A1 (en) 2018-08-15 2018-08-15 Verification method for ai calculation results, and related products

Publications (1)

Publication Number Publication Date
WO2020034116A1 true WO2020034116A1 (en) 2020-02-20

Family

ID=67235155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/100626 WO2020034116A1 (en) 2018-08-15 2018-08-15 Verification method for ai calculation results, and related products

Country Status (2)

Country Link
CN (1) CN110036367A (en)
WO (1) WO2020034116A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401147A (en) * 2022-01-20 2022-04-26 山西晟视汇智科技有限公司 New energy power station communication message comparison method and system based on abstract algorithm

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113746735B (en) * 2020-05-28 2023-04-28 阿里巴巴集团控股有限公司 Method, device and equipment for detecting controller and computer storage medium
CN111737159B (en) * 2020-08-27 2021-02-09 苏州浪潮智能科技有限公司 Software debugging method, device, equipment and computer readable storage medium
CN115827619B (en) * 2023-01-06 2023-05-09 山东捷瑞数字科技股份有限公司 Method, device and equipment for detecting repeated data based on three-dimensional engine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1622312A (en) * 2003-11-27 2005-06-01 北京北阳电子技术有限公司 Method for verifying consistency of chip hardware behavior and software simulation behavior
CN101105769A (en) * 2007-06-27 2008-01-16 北京中星微电子有限公司 Chip validation pretreatment method and device
CN106022468A (en) * 2016-05-17 2016-10-12 成都启英泰伦科技有限公司 Artificial neural network processor integrated circuit and design method therefor
CN106874173A (en) * 2015-12-10 2017-06-20 阿里巴巴集团控股有限公司 The method of testing and device of Page Template

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014013686A1 (en) * 2012-07-19 2014-01-23 日本電気株式会社 Verification device and control method for verification device, as well as computer program
CN106445800A (en) * 2015-08-05 2017-02-22 深圳市中兴微电子技术有限公司 Chip verification method and device
CN106708687B (en) * 2015-11-12 2020-03-17 青岛海信电器股份有限公司 Chip verification method and device based on executable file
CN107247859B (en) * 2017-08-14 2018-11-02 深圳云天励飞技术有限公司 Verification method, device, electronic equipment and the storage medium of Logic Circuit Design

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1622312A (en) * 2003-11-27 2005-06-01 北京北阳电子技术有限公司 Method for verifying consistency of chip hardware behavior and software simulation behavior
CN101105769A (en) * 2007-06-27 2008-01-16 北京中星微电子有限公司 Chip validation pretreatment method and device
CN106874173A (en) * 2015-12-10 2017-06-20 阿里巴巴集团控股有限公司 The method of testing and device of Page Template
CN106022468A (en) * 2016-05-17 2016-10-12 成都启英泰伦科技有限公司 Artificial neural network processor integrated circuit and design method therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401147A (en) * 2022-01-20 2022-04-26 山西晟视汇智科技有限公司 New energy power station communication message comparison method and system based on abstract algorithm
CN114401147B (en) * 2022-01-20 2024-02-20 山西晟视汇智科技有限公司 New energy power station communication message comparison method and system based on abstract algorithm

Also Published As

Publication number Publication date
CN110036367A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
WO2020034116A1 (en) Verification method for ai calculation results, and related products
US11030517B2 (en) Summary obtaining method, apparatus, and device, and computer-readable storage medium
WO2017177661A1 (en) Convolutional neural network-based video retrieval method and system
US11514003B2 (en) Data compression based on key-value store
CN110909229A (en) Webpage data acquisition and storage system based on simulated browser access
CN116431878A (en) Vector retrieval service method, device, equipment and storage medium thereof
CN113688955B (en) Text recognition method, device, equipment and medium
WO2020057023A1 (en) Natural-language semantic parsing method, apparatus, computer device, and storage medium
US11886590B2 (en) Emulator detection using user agent and device model learning
CN112363814A (en) Task scheduling method and device, computer equipment and storage medium
CN113780042A (en) Picture set operation method, picture set labeling method and device
CN113836005A (en) Virtual user generation method and device, electronic equipment and storage medium
CN104008334A (en) Clustering method and device of files
CN111291186A (en) Context mining method and device based on clustering algorithm and electronic equipment
WO2020088211A1 (en) Data compression method and related apparatus, and data decompression method and related apparatus
WO2021042895A1 (en) Neural network-based verification code identification method and system, and computer device
CN112711598A (en) Data verification method and device
CN114490996B (en) Intention recognition method and device, computer equipment and storage medium
CN113239296B (en) Method, device, equipment and medium for displaying small program
CN111738848B (en) Method, device, computer equipment and storage medium for generating characteristic data
CN114238583B (en) Natural language processing method, device, computer equipment and storage medium
CN117093717B (en) Similar text aggregation method, device, equipment and storage medium thereof
CN117827814A (en) Data verification method, device, computer equipment and storage medium
CN117875321A (en) Information input method, device, computer equipment and storage medium
CN117331956A (en) Task processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18930206

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.06.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18930206

Country of ref document: EP

Kind code of ref document: A1