CPC G06F 17/16 (2013.01) [G06N 3/08 (2013.01)] | 20 Claims |
1. A processing device, comprising:
memory configured to store data;
a processor configured to:
determine, based on convolutional parameters comprising padding parameters indicating whether n, h, w, c positions of an image space, of an image, along a height and width of the image space comprise padded data, a virtual general matrix-matrix multiplication (GEMM) space of a virtual GEMM space output matrix; and
generate, in the virtual GEMM space output matrix, a convolution result by matrix multiplying the data corresponding to a virtual GEMM space input matrix with the data corresponding to a virtual GEMM space filter matrix; and
convolutional mapping hardware configured to map, based on the convolutional parameters, x, y positions of the virtual GEMM space input matrix to the n, h, w, c positions of the image space using n, h, w, c memory addresses.
|