CPC G06F 13/1668 (2013.01) [G06N 3/04 (2013.01)] | 18 Claims |
1. A method of operating an accelerator comprising an input memory configured to perform a target operation, the input memory comprising words for storing, at one time, input data comprising a data map, the words having a same word width, the method comprising:
determining a number of filters corresponding to an input data to be packed into a same word, wherein the input data to be packed into the same word is determined based on a layout and wherein the layout is determined based on a word of the input memory and a spatial size of a filter to be applied to the target operation;
determining a virtual filter based on the number of filters, a spatial size of a filter and a stride size of the filter;
packing the input data corresponding to a one stride of the virtual filter as the same word; and
performing the target operation between a portion of the packed input data stored in the same word in the input memory and weights of the filter.
|