Hardware Implementation of a Neural Network
AssigneeImagination Technologies Limited
InventorsXiran Huang, Cagatay Dikici
Life of this patent
Estimating the term…
Abstract
A hardware implementation of a neural network and a method of processing data in such a hardware implementation are disclosed. Input data for a plurality of layers of the network is processed in blocks, to generate respective blocks of output data. The processing proceeds depth-wise through the plurality of layers, evaluating all layers of the plurality of layers for a given block, before proceeding to the next block.
Claims20
A method of processing data in a hardware implementation of a neural network including a plurality of layers, the method comprising:
- providing, in one or more first memory devices, weight data representing weights for the plurality of layers;
- providing, in the one or more first memory devices, input data for a first layer of the plurality of layers, the plurality of layers terminating with an end layer generating p output data sets, each set comprising n output data elements, where n>2 and p≥1 and p depends on the weight data;
- reading, from the one or more first memory devices, a first subset of the input data, representing a first block of the input data;
- reading the weight data from the one or more first memory devices;
- processing the weight data and the first subset of the input data, to evaluate each layer of the plurality of layers and thereby calculate a first block of output data for a first output data set, wherein the first block of output data has m output data elements, where m>1 and m<n;
- and
- writing the first block of output data to the one or more first memory devices,
- wherein at least one of the plurality of layers is a convolutional layer.
A hardware implementation of a neural network including a plurality of layers at least one of which is a convolutional layer, the hardware implementation comprising:
- one or more first memory devices, configured to store:
- weight data representing weights for the plurality of layers;
- and
- input data for a first layer of the plurality of layers, the plurality of layers terminating with an end layer generating p output data sets, each set comprising n output data elements, where n>2 and p≥1 and p depends on the weight data,
- an input buffer, configured to obtain a first subset of the input data, representing a first block of the input data,
- a coefficient buffer, configured to obtain the weight data,
- one or more processing elements, configured to process the weight data and the first subset of the input data, to evaluate each layer of the plurality of layers and thereby calculate a first block of output data for a first output data set, wherein the first block of output data has m output data elements, where m>1 and m<n;
- and
- an output buffer, configured to output the first block of output data.
A non-transitory computer readable storage medium having stored thereon computer readable code configured to cause to be performed, when the code is run, a method of processing data in a hardware implementation of a neural network including a plurality of layers, the method comprising:
- providing, in one or more first memory devices, weight data representing weights for the plurality of layers;
- providing, in the one or more first memory devices, input data for a first layer of the plurality of layers, the plurality of layers terminating with an end layer generating p output data sets, each set comprising n output data elements, where n>2 and p≥1 and p depends on the weight data;
- reading, from the one or more first memory devices, a first subset of the input data, representing a first block of the input data;
- reading the weight data from the one or more first memory devices;
- processing the weight data and the first subset of the input data, to evaluate each layer of the plurality of layers and thereby calculate a first block of output data for a first output data set, wherein the first block of output data has m output data elements, where m>1 and m<n;
- and
- writing the first block of output data to the one or more first memory devices,
- wherein at least one of the plurality of layers is a convolutional layer.
Dependencies are inferred from the claim text.