Inference method and device

A reasoning method and forward reasoning technology, applied in the field of reasoning methods and devices, can solve problems such as heavy development workload and high development difficulty, and achieve the effect of low development difficulty and reduced development workload

Pending Publication Date: 2021-10-01
HANGZHOU HIKVISION DIGITAL TECH
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

After a neural network model is trained, in order to enable the custom operators in the neural network model to adapt to devices with various hardware conditions, the user needs to manually convert the operators that are not supp

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Inference method and device
  • Inference method and device
  • Inference method and device

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0075] In order to make the purpose, technical solutions and advantages of the present application, the present application will be further described in detail below with reference to the accompanying drawings.

[0076] The operator is used to indicate a data processing operation, describing a calculation method, can be constructed and trained according to the basis of the basic operator and the custom operator can be constructed and trained to obtain a neural network model, and the neural network model can be deployed on various devices. Forward reasoning. However, the hardware conditions of different devices may be different, so the operators that the hardware of different devices may have differently. In order to be able to adapt the custom operator in the neural network model to the device of various hardware conditions, the corresponding data processing operation is performed, the present application provides a general reasoning method without the need for users to understand...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an inference method and device, and belongs to the field of data processing. Operators which are not supported by the target hardware and do not have corresponding replaceable operators can be determined, namely, the operators of the first type in the neural network model are determined, then the registration operators corresponding to the operators of the first type determined based on the domain-specific language are acquired, and the registration operators are processed. A target executable code supported by the target hardware is acquired, and forward Inference is performed by the target hardware according to the target executable code and the neural network model. Due to the fact that the design of the specific language in the field is irrelevant to hardware, a user can compile the registration operator without knowing hardware characteristics of equipment, and development difficulty is low. Besides, aiming at the same first type of operators possibly corresponding to different hardware, the user only needs to write the operator once to obtain the corresponding registration operator, and the registration operator can be applied to different hardware, so that the development workload is relatively low.

Description

technical field [0001] The present application relates to the field of data processing, in particular to a reasoning method and device. Background technique [0002] Operators are used to indicate a data processing operation and describe a calculation method. For example, neural networks usually include basic convolution operators and pooling operators. Convolution operators are used to indicate a convolution operation. Pooling An operator is used to indicate a pooling operation. Users can also define their own calculation methods according to their needs, and the calculation methods defined by themselves can be called custom operators. A neural network model can be constructed and trained based on basic operators and custom operators. Afterwards, the neural network model can be deployed on various devices for forward inference. [0003] Since the hardware conditions of different devices may be different, the operators supported by different devices may be different. Gen...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06N5/04G06N3/04G06N3/08
CPCG06N5/045G06N5/046G06N3/08G06N3/045
Inventor 浦世亮叶挺群王鹏
Owner HANGZHOU HIKVISION DIGITAL TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products