Patent ID: 11934837
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. The method according to claim 2, wherein the generating, based on the length of each of the at least one loop dimension of the first tensor formula and the second SIMD instruction model, a first SIMD instruction obtained after the first tensor formula is converted comprises:
obtaining, based on the first indication information in the information about a second SIMD instruction model, a first parameter corresponding to a first loop dimension of the first tensor formula, wherein the first loop dimension is one of the at least one loop dimension, and a length of the first loop dimension is not exactly divided by a value range of the corresponding first parameter; and
generating a parameter value of a body part of the first SIMD instruction and a parameter value of a tail part of the first SIMD instruction based on the length of the first loop dimension.