Method, device, device and medium for reduction calculation of multidimensional tensors
A protocol and multi-dimensional technology, applied in the direction of multi-program device, calculation, program control design, etc., can solve the problems of unsatisfactory computing power requirements, slow speed, etc., and achieve the effect of improving the calculation speed of the protocol
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] figure 1 It is a flow chart of a multi-dimensional tensor reduction calculation method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of performing reduction calculations on multi-dimensional tensors. It can be executed by a computing device, which can be implemented in the form of software and / or hardware, and can generally be integrated in a processor.
[0029] Such as figure 1 As shown, the method of this embodiment specifically includes:
[0030] S110. Obtain the multi-dimensional tensor to be reduced and calculated, and the corresponding dimension information and non-reducible dimension information of the multi-dimensional tensor.
[0031] A multidimensional tensor refers to a tensor with multiple dimensions. The dimension to be reduced is predetermined according to the specific application of the multidimensional tensor. Among the multiple dimensions, all the dimensions except the dimension to be reduced are non-redu...
Embodiment 2
[0058] figure 2 It is a flow chart of a multi-dimensional tensor calculation method provided by Embodiment 2 of the present invention. This embodiment is embodied on the basis of the above-mentioned embodiment, wherein, according to the low-dimensional information of the two-dimensional tensor, the two-dimensional tensor The volume is divided into at least two data areas, specifically:
[0059] According to the low-dimensional information of the two-dimensional tensor and the available number of hardware computing units, the two-dimensional tensor is evenly divided into at least two data areas, wherein the number of data areas matches the available number of hardware computing units.
[0060] Such as figure 2 As shown, the method of this embodiment specifically includes:
[0061] S210. Acquire the multidimensional tensor to be reduced and calculated, and the dimension information to be reduced and dimension information not to be reduced corresponding to the multidimensional ...
Embodiment 3
[0083] On the basis of the above-mentioned embodiments, this embodiment provides a specific implementation manner, using multi-dimensional tensor T Dimensions are [ R 1_1, R 1_2, …, R 1_nr1, U 1_1, U 1_2, …, U 1_nu1, R 2_1, R 2_2, …, R 2_nr2, U 2_1, U 2_2, …, U 2_nu2, …, R n_1, R n_2, ..., R n_nrn, U n_1, U n_2, ..., U n_nun] as an example for explanation.
[0084] Such as Figure 5 As shown, the method of this embodiment specifically includes:
[0085] S310. Obtain the multi-dimensional tensor to be reduced and calculated, and the corresponding dimension information and non-reduced dimension information of the multi-dimensional tensor.
[0086] assumed dimension R 1_1, R 1_2,..., R 1_nr1, R 2_1, R 2_2,..., R 2_nr2, ..., R n_1, R n_2,..., R n_nrn is the dimension to be reduced, U 1_1, U 1_2, …, U 1_nu1, U 2_1, U 2_2, …, U 2_nu2, …, U n_1, U n_2, ..., U n_nun is the dimension not to be reduced.
[0087] S320. Merge adjacent dimensions to be...
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