Subtask storage for streaming convolutions in neural network processor
Abstract
Embodiments relate to streaming convolution operations in a neural processor circuit that includes a neural engine circuit and a neural task manager. The neural task manager obtains multiple task descriptors and multiple subtask descriptors. Each task descriptor identifies a respective set of the convolution operations of a respective layer of a set of layers. Each subtask descriptor identifies a corresponding task descriptor and a subset of the convolution operations on a portion of a layer of the set of layers identified by the corresponding task descriptor. The neural processor circuit configures the neural engine circuit for execution of the subset of the convolution operations using the corresponding task descriptor. The neural engine circuit performs the subset of the convolution operations to generate output data that correspond to input data of another subset of the convolution operations identified by another subtask descriptor from the list of subtask descriptors.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A neural processor circuit, comprising: a neural engine circuit configured to perform a plurality of convolution operations of a plurality of layers in a streaming mode; and a neural task manager configured to: obtain a plurality of task descriptors and a plurality of subtask descriptors, each of the plurality of task descriptors identifying a respective set of the plurality of convolution operations of a respective layer of the plurality of layers, each of the plurality of subtask descriptors identifying a corresponding task descriptor of the plurality of task descriptors and a subset of the plurality of convolution operations on a portion of a layer of the plurality of layers identified by the corresponding task descriptor, and configure the neural engine circuit for execution of the subset of the plurality of convolution operations using the corresponding task descriptor, wherein, in the streaming mode, the neural engine circuit is configured to perform the subset of the plurality o
- Claim 2Depends on #1
The neural processor circuit of claim 1, wherein, in the streaming mode, the neural engine circuit is further configured to: perform, using information from a first subtask descriptor of the plurality of subtask descriptors and from a first task descriptor of the plurality of task descriptors identified by the first subtask descriptor, a first subset of the plurality of convolution operations on a portion of a first input tensor of a portion of a first layer of the plurality of layers to generate a portion of a first output tensor at a first time, the portion of the first output tensor corresponding to a portion of a second input tensor; and perform, using information from a second subtask descriptor of the plurality of subtask descriptors and from a second task descriptor of the plurality of task descriptors identified by the second subtask descriptor, a second subset of the plurality of convolution operations on the portion of the second input tensor of a portion of a second layer of
- Claim 3Depends on #2
The neural processor circuit of claim 2, further comprising a data processor circuit coupled to the neural engine circuit, the data processor circuit configured to: send the portion of the first input tensor from a buffer memory of the data processor circuit to the neural engine circuit; and store the portion of the first output tensor in the buffer memory for access by the neural engine circuit as the portion of the second input tensor to perform the second subset of the plurality of convolution operations at the second time.
- Claim 4Depends on #1
The neural processor circuit of claim 1, wherein the neural task manager comprises a task manager controller configured to: update, upon execution of the subset of the plurality of convolution operations, one or more parameters in the corresponding task descriptor for preparing execution of a next subset of the plurality of convolution operations associated with a next subtask descriptor of the plurality of subtask descriptors that identifies the corresponding task descriptor.
- Claim 5Depends on #4
The neural processor circuit of claim 4, wherein the task manager controller is further configured to: update the one or more parameters in the corresponding task descriptor with information about an address of a portion of an input tensor for execution of the next subset of the plurality of convolution operations.
- Claim 6Depends on #1
The neural processor circuit of claim 1, wherein the neural task manager comprises: a task memory access circuit configured to load the plurality of task descriptors and the plurality of subtask descriptors from a system memory coupled to the neural processor circuit; a task memory coupled to the task memory access circuit, the task memory configured to store the plurality of task descriptors received from the task memory access circuit; and a subtask buffer coupled to the task memory access circuit, the subtask buffer configured to store the plurality of subtask descriptors received from the task memory access circuit.
- Claim 7Depends on #1
The neural processor circuit of claim 1, wherein the neural task manager comprises a task manager controller configured to: read a first index and a second index from each of the plurality of subtask descriptors; read information from the corresponding task descriptor using the first index; and configure the neural engine circuit for execution of the subset of the plurality of convolution operations using the second index and the information read from the corresponding task descriptor.
- Claim 8Depends on #1
The neural processor circuit of claim 1, wherein the neural task manager comprises a task manager controller configured to: configure the neural engine circuit for execution of the subset of the plurality of convolution operations by updating one or more registers of the neural engine circuit.
Technical Overview & Description
BACKGROUND 1. Field of the Disclosure The present disclosure relates to performing operations related to neural networks, and more specifically to performing multiple layers of convolutions in a streaming manner as streaming subtasks. 2. Description of the Related Arts An artificial neural network (ANN) is a computing system or model that uses a collection of connected nodes to process input data. The ANN is typically organized into layers where different layers perform different types of transformation on their input. Extensions or variants of ANN such as convolution neural network (CNN), recurrent neural networks (RNN) and deep belief networks (DBN) have come to receive much attention. These computing systems or models often involve extensive computing operations including multiplication and accumulation. For example, CNN is a class of machine learning technique that primarily uses convolution between input data and kernel data, which can be decomposed into multiplication and accumulation operations. Depending on the types of input data and operations to be performed, these machine learning systems or models can be configured differently. Such varying configuration would include, for example, pre-processing operations, the number of channels in input data, kernel data to be used, non-linear function to be applied to convolution result, and applying of various post-processing operations. Using a central processing unit (CPU) and its main memory to instantiate and execute machine learning systems or models of various configuration is relatively easy because such systems or models can be instantiated with mere updates to code. However, relying solely on the CPU for various operations of these machine learning systems or models would consume significant bandwidth of the CPU as well as increase the overall power consumption. SUMMARY Embodiments relate to convolution operations performed in a streaming manner in a neural processor circuit by dividing the convolution ope
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (8)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,288,152 B2 | Neural network weight encoding | 2025 | 1 |
Non-Patent Literature (5)
- He, Kaiming, et al.
- “
- Deep residual learning for image recognition.
- ”
- Proceedings of the IEEE conference on computer vision and pattern recognition. 2016. (Year: 2016).