×

Batch processing in a neural network processor

  • US 10,083,395 B2
  • Filed: 09/03/2015
  • Issued: 09/25/2018
  • Est. Priority Date: 05/21/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for performing neural network computations using hardware circuitry comprising a hardware matrix computation unit, the neural network computations being for a neural network having a plurality of neural network layers, the method comprising:

  • obtaining, using the hardware circuitry, a plurality of layer inputs to be processed;

    based on (i) a size of a layer input to a particular neural network layer of the plurality of neural network layers and (ii) a weight reuse value representing a number of times that the hardware matrix computation unit of the hardware circuitry reuses weight inputs for neural network computations, determining, using the hardware circuitry, a batch size for the particular neural network layer, wherein the batch size represents a number of batches to be processed in parallel by the hardware matrix computation unit for the particular neural network layer; and

    processing, by the hardware matrix computation unit and for the particular neural network layer, one or more batches of layer inputs to generate one or more layer outputs, wherein each batch of the one or more batches includes a number of layer inputs corresponding to the batch size for particular neural network layer.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×