Apple patents chip design that keeps math results ready for next steps
Apple has been granted a patent for a specific layout inside a neural network processor. It describes a circuit that performs a math step called reduction and holds the results in a temporary memory called a line buffer for a set number of cycles. This allows the chip to reuse those results for multiple follow-up calculations without recalculating them.
In the filing’s own words
Embodiments of the present disclosure relate to a reduction operation in a neural processor circuit where results of the reduction operation are retained for multiple post-processing operations. The neural processor circuit includes neural engine circuits and a planar engine circuit coupled to the neural engine circuits. At least one neural engine circuit performs a convolution operation to generate output data. The planar engine circuit includes a filter circuit and a line buffer coupled to the filter circuit. The filter circuit performs a reduction operation for each patch of a tensor from the output data to generate a respective reduced value associated with a corresponding channel of the tensor. The line buffer stores reduced values each being associated with a respective channel of the tensor. The line buffer retains the reduced values for a defined number of operating cycles as indicated by a refresh flag defining resetting of the line buffer.
What exactly they claim (claim 1)
1. A neural processor circuit, comprising: a plurality of neural engine circuits comprising a first neural engine circuit and a second neural engine circuit, at least one of the plurality of neural engine circuits configured to perform a convolution operation to generate output data; a planar engine circuit that is separated from and coupled to the plurality of neural engine circuits including the first neural engine circuit and the second neural engine circuit, the planar engine circuit including: a first filter circuit configured to perform a reduction operation to reduce a patch tensor of a first rank to another tensor of a second rank lower than the first rank by removing one or more dimensions of the patch tensor of the first rank for each patch of a plurality of patches of a tensor for a dataset of an input data originating from the output data to generate a respective reduced value of a plurality of reduced values, the respective reduced value associated with a corresponding channel of a plurality of channels of the tensor for the dataset, the respective reduced value being generated based on values of elementwise operations between a first work unit of each patch and a second work unit of another patch, wherein the tensor of the input data comprises more than 3 dimensions and the plurality of patches, at least one patch of the plurality of patches includes 3 dimensions and a plurality of work units, and at least one work unit of the plurality of work units represents the dataset of a size capable of being processed by the planar engine circuit in a single operating cycle; a second filter circuit coupled to the first filter circuit, the second filter circuit configured to: receive a first tensor and a second tensor as part of the output data; and perform an elementwise operation between the first tensor and the second tensor to generate the tensor for the first filter circuit; and a line buffer coupled to the first filter circuit, the line buffer configured to: store the plurality of reduced values for the plurality of channels being transferred from one or more registers within the first filter circuit, and retain the plurality of reduced values for a defined number of operating cycles as indicated by a refresh flag stored in another register external to the first filter circuit and defining resetting of the line buffer; and a data processor circuit coupled to the planar engine circuit and the plurality of neural engine circuits, the data processor circuit configured to: store the output data obtained from at least one neural engine circuit; and send the output data to the planar engine circuit, the output data comprising the dataset as the input data for the plurality of patches and the plurality of channels of the tensor.
Facts
- Company
- Apple (Apple Inc.)
- Official title
- Reduction operation with retention in neural network processor
- Patent number
- US12762385B2
- Application number
- 17505426
- Filed
- Oct 19, 2021
- Granted
- Oct 13, 2026
- Inventors
- 2
- Claims
- 20
Classified under
G06N 3/063 Physics & computingG06F 17/153 Physics & computingG06N 3/045 Physics & computingG06N 3/0464 Physics & computingMore from Apple in Chips & hardware
- Apple patents glass chip base that uses light to move data Oct 8, 2026
- Apple patents radar that maps rooms using moving objects Sep 1, 2026
- Apple patents display method that reuses static images to save power Sep 1, 2026
- Apple patents stretchable OLED displays with sealed pixel islands Sep 8, 2026
- Apple patents method to fix color fringes in high-resolution displays Sep 8, 2026
Summaries are simplified from the filing’s own abstract and first claim. A patent filing is not a product announcement.
Patent data and drawings: U.S. Patent and Trademark Office (USPTO). Nebula is not affiliated with or endorsed by the USPTO.
