Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A three-valued neural network weight processing method and device in embedded equipment

An embedded device and neural network technology, applied in the field of three-value neural network weight processing in embedded devices, can solve problems such as occupation and large memory space, and achieve the effect of wide application prospects

Active Publication Date: 2019-06-14
北京拓灵新声科技有限公司
View PDF12 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] To this end, the embodiment of the present invention provides a method and device for processing ternary neural network weights in embedded devices, which solves the problem that the ternary neural network model occupies an embedded device on the premise of ensuring the accuracy and speed of neural network operations. Problems with larger memory spaces

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
  • A three-valued neural network weight processing method and device in embedded equipment
  • A three-valued neural network weight processing method and device in embedded equipment
  • A three-valued neural network weight processing method and device in embedded equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The implementation mode of the present invention is illustrated by specific specific examples below, and those who are familiar with this technology can easily understand other advantages and effects of the present invention from the contents disclosed in this description. Obviously, the described embodiments are a part of the present invention. , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0030] see figure 1 , figure 2 and image 3 A method for processing weights of a ternary neural network in an embedded device is provided, comprising the following steps:

[0031] Compression before loading: Before the neural network model is loaded into the embedded device, the original ternary network weight data in the neural network model is grouped, and the grouped weight data is bitwise...

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 embodiment of the invention discloses a three-valued neural network weight processing method and device in embedded equipment. The method comprises the following steps: loading a neural network model to embedded equipment; grouping the original ternary network weight data in the neural network model, carrying out bitwise AND operation on the grouped weight data to obtain a low 2-bit weight data of each weight data, carrying out leftward shift according to the sequence of the weight data, and carrying out bitwise OR operation on the leftward shifted weight data to obtain compressed weight data; performing memory space development according to the storage space required by the single-layer weight data of the neural network model, performing bitwise and operation on the compressed weightdata corresponding to the single-layer weight data before the single-layer weight data is operated, and performing right shift on the bitwise and operated compressed weight data to obtain original ternary network weight data. And on the premise of ensuring the accuracy and speed of neural network operation, the problem that the three-valued neural network model occupies a relatively large memory space on embedded equipment is solved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular to a method and device for processing ternary neural network weights in embedded devices. Background technique [0002] With the continuous improvement of computer performance, deep learning and artificial neural networks have been widely used in speech recognition, person recognition and detection of various abnormal sounds. Traditionally, speech recognition technology is based on the spectrogram after time-frequency analysis. The spectrogram of a particular speech has a specific structure, but this structure varies with the speaker and the environment. Applying deep learning and artificial neural network to speech technology can use the translation invariance of neural network to overcome the diversity of speech signal itself. [0003] At the same time, the need to run neural network algorithms on embedded devices with low computing and stor...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06N3/04
Inventor 王梓潇孙学京许春生沈瑶
Owner 北京拓灵新声科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products