Calibration method and device, terminal equipment and storage medium
A calibration method and technology of terminal equipment, applied in the field of data processing, can solve the problem of slow model calculation speed and so on
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] figure 1 It is a schematic flowchart of a calibration method provided in Embodiment 1 of the present invention. The method can be applied to the case of calibrating the layer to be calibrated in the model. The method can be executed by a calibration device, wherein the device can be software and / or hardware. It is implemented and generally integrated on a terminal device. In this embodiment, the terminal device includes, but is not limited to, devices such as a mobile phone, a computer, and a personal digital assistant.
[0050] The present invention can be applied to model quantization scenarios, and after the model training is completed, the layers to be calibrated in the model are calibrated in groups by the calibration method provided by the present invention, so as to obtain the quantization factors of each layer to be calibrated. Quantization factors can be used to achieve model quantization. like figure 1 As shown, a calibration method provided in Embodiment 1 ...
Embodiment 2
[0067] figure 2 This is a schematic flowchart of a calibration method provided in Embodiment 2 of the present invention, and Embodiment 2 is embodied on the basis of the foregoing embodiments. In this embodiment, the grouping information corresponding to the layer to be calibrated is determined according to the attribute information and available resource information of each layer, which is further embodied as:
[0068] Determining the target layers of the layers to be calibrated in descending order of the required memory information;
[0069] determining the grouping information of the target layer;
[0070] The target layer is re-determined until the grouping information of each layer to be calibrated in the model is determined.
[0071] Please refer to the first embodiment for the content that is not yet detailed in this embodiment.
[0072] like figure 2 As shown, a calibration method provided by the second embodiment of the present invention includes the following s...
Embodiment 3
[0125] image 3 This is a schematic structural diagram of a calibration device provided in Embodiment 3 of the present invention. The device is applicable to the case of calibrating the layer to be calibrated in the model, wherein the device can be implemented by software and / or hardware, and is generally integrated on terminal equipment. .
[0126] like image 3 As shown, the device includes:
[0127] The first determination module 31 is used to determine the layer attribute information of the layer to be calibrated in the model;
[0128] The second determining module 32 is configured to determine the grouping information corresponding to the layer to be calibrated according to the attribute information of each layer and the available resource information;
[0129] The grouping calibration module 33 is configured to perform grouping calibration on the layers to be calibrated according to the grouping information.
[0130] In this embodiment, the device first determines th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com