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

Code library cutting method and device for mobile terminal

A code base, mobile terminal technology, applied in the computer field

Pending Publication Date: 2021-02-05
MEGVII BEIJINGTECH CO LTD +1
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, compared with the cloud, the mobile terminal also has many limitations, causing the deep learning acceleration library to face many challenges such as model size, performance, and SDK size.

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
  • Code library cutting method and device for mobile terminal
  • Code library cutting method and device for mobile terminal
  • Code library cutting method and device for mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] First, refer to figure 1 An example electronic device 100 for implementing a method and an apparatus for clipping a code base of a mobile terminal according to an embodiment of the present invention will be described.

[0029] like figure 1 Shown is a schematic structural diagram of an electronic device. The electronic device 100 includes one or more processors 102, one or more storage devices 104, an input device 106, an output device 108, and an image acquisition device 110. These components pass through a bus system 112 and / or other forms of connection mechanisms (not shown). It should be noted that figure 1 The components and structure of the electronic device 100 shown are only exemplary, not limiting, and the electronic device may also have other components and structures as required.

[0030] The processor 102 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic a...

Embodiment 2

[0037] This embodiment provides a method for clipping a code library on a mobile terminal, which can be executed by the above-mentioned electronic devices such as computers, see figure 2 The schematic flow chart of the method for clipping the code base of the mobile terminal is shown, and the method mainly includes the following steps S210 to S230:

[0038] S210. Segment the code to be trimmed in the code base.

[0039] The code base is generally a code base in a mobile terminal, and the mobile terminal may refer to a mobile device. Due to the characteristics of the mobile terminal itself, the processing power and storage capacity of the processor are very valuable, which can be said to be very expensive. However, since the target mobile terminal is mainly developing towards a direction with complete functions and powerful capabilities, the scale of the code base configured on it is also becoming larger and larger.

[0040]In the embodiment of the present invention, there m...

Embodiment 3

[0058] This embodiment provides an example of a code library clipping method for a mobile terminal, which can be executed by the above-mentioned electronic equipment such as a computer, see image 3 The flow chart of the code base clipping method on the mobile terminal is shown, and the method mainly includes the following steps:

[0059] Step a), instrumentation stage: determine the code to be trimmed, perform instrumentation on the code to be tailored, and obtain the code after instrumentation.

[0060] For example, some functions or methods with a large binary size (binary size) in the code base can be found out (that is, the code to be trimmed). This step can be realized through the viewing function of the llvm-nm tool. Then determine the larger function or method that is queried as the code to be trimmed, and insert it (that is, wrap the key code with MIDOUT_BEGIN and MIDOUT_END), so as to facilitate subsequent recording of the execution path of the code during program ru...

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 provides a code library cutting method and device of a mobile terminal, and relates to the technical field of computers, and the method comprises the steps: segmenting a to-be-cut code in a code library; operating the code library, and recording marks of the executed segments; and on the basis of the marks of the executed segments, cutting the segments which are not executed. The code quantity of a code library of the mobile terminal is reduced, and the processing pressure of the mobile terminal is relieved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for clipping a code base of a mobile terminal. Background technique [0002] Mobile deep learning has natural advantages in enhancing real-time experience, reducing cloud computing load, and protecting user privacy. It is more and more widely used in image, voice and other fields. However, compared with the cloud, the mobile terminal also has many limitations, causing the deep learning acceleration library to face many challenges such as model size, performance, and SDK size. Contents of the invention [0003] In view of this, the object of the present invention is to provide a code base clipping method and device for a mobile terminal, which reduces the size of the code base and alleviates the computing pressure of the mobile terminal. [0004] In order to achieve the above object, the technical solution adopted in the embodiment of the present i...

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): G06F8/70G06F8/41
CPCG06F8/41G06F8/70
Inventor 曾平贾开柳俊杰许欣然田忠博
Owner MEGVII BEIJINGTECH CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More