Visual transducer accelerator
Патент · CN A
Полный текст
A visual transformer accelerator is provided that includes a plurality of kernel blocks, each kernel block configured to compute an operation of a visual transformer model including a matrix multiplication operation and a different type of nonlinear function, a weight buffer configured to store weight data associated with the visual transformer model, a kernel input bus configured to transmit input data of a current encoder layer of the visual transformer model to each kernel block of the plurality of kernel blocks, a kernel output bus configured to transmit first output data of each kernel block of the plurality of kernel blocks to a next encoder layer of the visual transformer model, and a weight bus configured to transmit weight data from the weight buffer to each kernel block of the plurality of kernel blocks. Further, each of the plurality of kernel blocks includes a plurality of matrix buffers, each matrix buffer configured to store one or more matrices, a matrix multiplication unit communicatively coupled to the plurality of matrix buffers and the weight buffer, the matrix multiplication unit configured to calculate a matrix multiplication operation based on at least one matrix stored in one or more of the plurality of matrix buffers, and a nonlinear function block configured to calculate each of the different types of nonlinear functions. A corresponding method of operating a visual transducer accelerator is also provided.