Patent ID: 11875220
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. A non-transitory computer readable storage medium storing computer readable instructions, wherein, the computer readable instructions, when executed by a processor, are configured to cause the processor to perform:
obtaining a source-side vector sequence corresponding to an input sequence;
performing linear transformation on the source-side vector sequence, to obtain a request vector sequence, a key vector sequence, and a value vector sequence corresponding to the source-side vector sequence;
calculating a logical similarity between the request vector sequence and the key vector sequence;
constructing a local strength matrix according to the request vector sequence;
performing nonlinear transformation based on the logical similarity and the local strength matrix, to obtain a local strength attention weight distribution corresponding to elements in the input sequence; and
fusing value vectors in the value vector sequence according to the local strength attention weight distribution, to obtain a network representation sequence corresponding to the input sequence.