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

Memory management method, device and system

A memory management and memory technology, applied in the computer field, can solve problems such as waste of memory resources, disordered data, and inability to complete inference, and achieve the effect of improving utilization and reducing peak demand.

Pending Publication Date: 2022-05-20
HUAWEI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the memory of these operators is not managed, the executing operator cannot know where to schedule the input data, nor can it determine where the output data should be stored in the memory, resulting in data confusion and inability to complete reasoning. Currently, for the calculation graph Each operator of the algorithm allocates a block of memory, resulting in a waste of memory resources

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
  • Memory management method, device and system
  • Memory management method, device and system
  • Memory management method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0041] The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "compris...

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 a memory management method, which is applied to the technical field of artificial intelligence, and comprises the following steps: obtaining a computational graph of an artificial intelligence model, the computational graph comprising a plurality of operators and at least one edge, each edge being used for representing an input relationship or an output relationship between two of the plurality of operators; the memory is sequentially allocated for each operator according to the sequence of the requirements of each operator in the plurality of operators for the memory from large to small, the memory address of the first operator is overlapped with the memory address of the second operator, the second operator is not a mutual exclusion operator of the first operator, and the memory of the mutual exclusion operator of the first operator cannot be reused by the first operator. According to the technical scheme, the memory of the non-mutual exclusion operator can be reused, so that the utilization rate of the allocated memory can be improved, and the peak demand of the memory occupied by the computational graph can be reduced.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular, to a method, device and system for memory management. Background technique [0002] With the development of the Internet, artificial intelligence (AI) has developed rapidly, and AI models have been applied to various products and services. Generally, an AI model is constructed by using a deep neural network or a convolutional neural network, and then using training samples to train the constructed model to obtain an AI model that can be reasoned in application scenarios. [0003] The AI ​​model can be converted into a computational graph. A computational graph includes multiple operators and multiple edges. Each edge is associated with two operators. The edge is also used to represent the input between the two associated operators. / output relation. In the AI ​​inference process, the terminal side needs to calculate one by one according to the execution order of e...

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): G06F9/50G06F9/52
CPCG06F9/5016G06F9/526G06F9/50G06F9/52
Inventor 钱良芳
Owner HUAWEI TECH CO LTD
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