| CPC G06N 3/063 (2013.01) [G06F 7/5443 (2013.01); G06F 9/5027 (2013.01); G06F 17/16 (2013.01)] | 20 Claims |

|
1. A system comprising:
a neural network accelerator;
a processor;
a machine-readable storage medium comprising machine-level instructions executable by the processor to:
receive an input data stream comprising a plurality of channels, wherein each channel of the plurality of channels comprises a respective matrix of image data of the input data stream;
process the image data of the input data stream, by:
flattening at least a portion of the respective matrix of each channel of the plurality of channels to obtain a respective plurality of single dimension input data vectors; and
combining the respective plurality of single dimension input data vectors to obtain a single dimension input data stream vector;
while processing the image data of the input data stream, generate a weighted matrix for convolutional processing of the image data of the input data stream, by:
obtaining a first convolution filter and a second convolution filter;
flattening the first convolution filter and the second convolution filter to obtain a first single dimensional vector and a second single dimensional vector;
combining the first single dimensional vector and the second single dimensional vector to obtain the weighted matrix;
storing the weighted matrix in a memory of the neural network accelerator; and
applying the weighted matrix to a memristor crossbar array of a processing unit of the neural network accelerator;
perform the convolutional processing, comprising at least one of: blurring, sharpening, embossing, or edge detection of the image data of the input data stream, by performing a matrix vector multiplication operation to generate an output element array, wherein the matrix vector multiplication operation comprises applying the weighted matrix applied to the memristor crossbar array of the processing unit to the single dimension input data stream vector; and
generate a layered output stream comprising a first layer output corresponding to the first convolution filter and a second layer output corresponding to the second convolution filter, by storing a first portion of the output element array associated with the first convolution filter in the first layer output and storing a second portion of the output element array associated with the second convolution filter in the second layer output.
|