# US 10,956,776 B2 · 2D convolutional accelerator that generates 3D results

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,776 B2
- Document ID: US10956776B2
- Status: Granted
- Kind: B2
- Application number: 16/532,706
- Filed: 2019-08-06
- Published: 2021-02-11
- Granted: 2021-03-23
- Earliest claimed: 2019-08-06
- Assignees: Alibaba Group Holding Limited
- Applicants: Alibaba Group Holding Limited
- Inventors: Liang Han
- Web page: https://patentgrep.com/patent/US10956776B2

## CPC

- G06F 17/153: {Multidimensional correlation or convolution}
- G06F 9/3877: {using a secondary processor, e.g. coprocessor (peripheral processor G06F13/12)}
- G06F 18/2321: using statistics or function optimisation, e.g. modelling of probability density functions
- G06N 3/0418: {using chaos or fractal principles}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/063: using electronic means
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06N 3/048: Activation functions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A two-dimensional (2D) convolutional accelerator generates three-dimensional (3D) results by computing a plurality of running dot product totals for a plurality of shift positions for the frames in a sliding frame group such that each shift position has a running dot product total, and storing the plurality of running dot product totals in the elements of an output array.

## Claims

### Claim 1

A method of operating a convolutional accelerator, the method comprising:
receiving a plurality of input frames and a plurality of kernel channels in each of a plurality of convolutional layers, each of the input frames having a matching sequence of input channels of pixel arrays, the pixel arrays including a shift array that has a plurality of shift positions within the pixel arrays, each of the kernel channels including a plurality of kernel groups that correspond with the plurality of input frames, each kernel group having a matching sequence of kernel arrays that correspond with the sequence of pixel arrays of the input frame which corresponds to the kernel group;
determining in each convolutional layer a number of sliding groups from the plurality of input frames where each sliding group has a number of the input frames;
convolving in each convolutional layer the input frames in the sliding groups with the kernel groups in the plurality of kernel channels to generate a number of output frames that correspond with the number of sliding groups, each output frame having a number of output channels, each output channel having an output array, each output array having a number of entries that correspond with the plurality of shift positions of the shift array within the pixel arrays of the input frames, a last convolutional layer of the plurality of convolutional layers to output a last frame of the number of output frames, the last frame having a last channel of the number of output channels, the last channel having a last output array;
generating a plurality of labels with probabilities based on the last array of the last channel of the last frame; and
outputting the label with a highest probability as a detected action pattern.

### Claim 2 (depends on 1)

The method of claim 1 wherein convolving includes:
determining a running dot product total for each shift position of the plurality of shift positions of the shift array in the pixel arrays of the input frames in a sliding group of the sliding groups; and
generating the output array that corresponds with the sliding group by assigning the running dot product total for each shift position to a corresponding entry in the output array.

### Claim 3 (depends on 2)

The method of claim 2 wherein determining a running dot product total for each shift position of the shift array includes:
determining a running dot product total for all of the entries in the shift array in a shift position of the plurality of shift positions within the pixel arrays in the input frames in the sliding group; and
determining a running dot product total for the shift position from the running dot product total for all of the entries in the shift array in the shift position in the pixel arrays in the input frames of the sliding group.

### Claim 4 (depends on 3)

The method of claim 3 wherein determining a running dot product total for all of the entries in the shift array in the shift position in the pixel arrays in the input frames in the sliding group includes:
determining, frame by frame for the input frames in the sliding group, a running dot product total for an entry in the shift array in the shift position in each pixel array in an input frame; and
determining the running dot product total for all of the entries in the shift array in the shift position in the pixel arrays in the input frames of the sliding group from the running dot product total for each entry in the shift array in the shift position in each pixel array in each input frame in the sliding group.

### Claim 5 (depends on 4)

The method of claim 4 wherein the input channels of pixel arrays include a red array, a green array, a blue array, and a depth array.

### Claim 6 (depends on 4)

The method of claim 4 wherein the kernel arrays include a red array, a green array, a blue array, and a depth array.

### Claim 7 (depends on 6)

The method of claim 6 wherein a shift array size is defined by a kernel array size.

### Claim 8

A two-dimensional convolutional accelerator comprising:
a computing system having a plurality of core processors, the core processors to:
receive a plurality of input frames and a plurality of kernel channels in each of a plurality of convolutional layers, each of the input frames having a matching sequence of input channels of pixel arrays, the pixel arrays including a shift array that has a plurality of shift positions within the pixel arrays, each of the kernel channels including a plurality of kernel groups that correspond with the plurality of input frames, each kernel group having a matching sequence of kernel arrays that correspond with the sequence of pixel arrays of the input frame which corresponds to the kernel group;
determine in each convolutional layer a number of sliding groups from the plurality of input frames where each sliding group has a number of the input frames; and
convolve in each convolutional layer the input frames in the sliding groups with the kernel groups in the plurality of kernel channels to generate a number of output frames that correspond with the number of sliding groups, each output frame having a number of output channels, each output channel having an output array, each output array having a number of entries that correspond with the plurality of shift positions of the shift array within the pixel arrays of the input frames, a last convolutional layer of the plurality of convolutional layers to output a last frame of the number of output frames, the last frame having a last channel of the number of output channels, the last channel having a last output array; and
a classifier coupled to the computing system, the classifier to:
generate a list of labels with probabilities based on the last array in the last channel of the last frame; and
output a label with a highest probability as a detected action pattern.

### Claim 9 (depends on 8)

The accelerator of claim 8 wherein convolving the input frames includes:
determining a running dot product total for each shift position of the plurality of shift positions of the shift array in the pixel arrays of the input frames in a sliding group of the sliding groups; and
generating the output array that corresponds with the sliding group by assigning the running dot product total for each shift position to a corresponding entry in the output array.

### Claim 10 (depends on 9)

The accelerator of claim 9 wherein determining a running dot product total for each shift position of the shift array includes:
determining a running dot product total for all of the entries in the shift array in a shift position of the plurality of shift positions within the pixel arrays in the input frames in the sliding group; and
determining a running dot product total for the shift position from the running dot product total for all of the entries in the shift array in the shift position in the pixel arrays in the input frames of the sliding group.

### Claim 11 (depends on 10)

The accelerator of claim 10 wherein determining a running dot product total for all of the entries in the shift array in the shift position in the pixel arrays in the input frames in the sliding group includes:
determining, frame by frame for the frames in the sliding group, a running dot product total for an entry in the shift array in the shift position in each pixel array in an input frame; and
determining the running dot product total for all of the entries in the shift array in the shift position in the pixel arrays in the input frames of the sliding group from the running dot product total for each entry in the shift array in the shift position in each pixel array in each input frame in the sliding group.

### Claim 12 (depends on 11)

The accelerator of claim 11 wherein the input channels of pixel arrays include a red array, a green array, a blue array, and a depth array.

### Claim 13 (depends on 11)

The accelerator of claim 11 wherein the kernel arrays include a red array, a green array, a blue array, and a depth array.

### Claim 14 (depends on 13)

The accelerator of claim 13 wherein a shift array size is defined by a kernel array size.

### Claim 15

A non-transitory computer-readable storage medium having embedded therein program instructions, which when executed by a processor causes the processor to execute a method of operating a convolutional neural network, the method comprising:
receiving a plurality of input frames and a plurality of kernel channels, each of the input frames having a matching sequence of input channels of pixel arrays, the pixel arrays including a shift array that has a plurality of shift positions within the pixel arrays, each of the kernel channels including a plurality of kernel groups that correspond with the plurality of input frames, each kernel group having a matching sequence of kernel arrays that correspond with the sequence of pixel arrays of the input frame which corresponds to the kernel group;
determining a number of sliding groups from the plurality of input frames where each sliding group has a number of the input frames; and
convolving the input frames in the sliding groups with the kernel groups in the plurality of kernel channels to generate a number of output frames that correspond with the number of sliding groups such that the input frames in a sliding group and the kernel groups in the kernel channels are convolved to generate an output frame that corresponds with the sliding group, the output frame having a number of output channels, each output channel having an output array, each output array having a number of entries that correspond with the plurality of shift positions of the shift array within the pixel arrays of the input frames, a last convolution to output a last frame of the number of output frames, the last frame having a last channel of the number of output channels, the last channel having a last output array;
generating a plurality of labels with probabilities based on the last frame, the last channel, and the last array; and
outputting the label with a highest probability as a detected action pattern.

### Claim 16 (depends on 15)

The medium of claim 15, wherein convolving a number of times includes:
determining a running dot product total for each shift position of the plurality of shift positions of the shift array in the pixel arrays of the input frames in a sliding group of the sliding groups; and
generating the output array that corresponds with the sliding group by assigning the running dot product total for each shift position to a corresponding entry in the output array.

### Claim 17 (depends on 16)

The medium of claim 16, wherein
determining a running dot product total for each shift position of the shift array includes:
determining a running dot product total for all of the entries in the shift array in a shift position of the plurality of shift positions within the pixel arrays in the input frames in the sliding group; and
determining a running dot product total for the shift position from the running dot product total for all of the entries in the shift array in the shift position in the pixel arrays in the input frames of the sliding group.

### Claim 18 (depends on 17)

The medium of claim 17, wherein determining a running dot product total for all of the entries in the shift array in the shift position in the pixel arrays in the frames in the sliding group includes:
determining, frame by frame for the input frames in the sliding group, a running dot product total for an entry in the shift array in the shift position in each pixel array in an input frame; and
determining the running dot product total for all of the entries in the shift array in the shift position in the pixel arrays in the input frames of the sliding group from the running dot product total for each entry in the shift array in the shift position in each pixel array in each input frame in the sliding group.

### Claim 19 (depends on 18)

The medium of claim 18, wherein the input channels of pixel arrays include a red array, a green array, a blue array, and a depth array.

### Claim 20 (depends on 18)

The medium of claim 18, wherein the kernel arrays include a red array, a green array, a blue array, and a depth array.
