Neural Network Hardware Accelerator Data Parallel Processing

By enabling simultaneous reading and writing to multiple memory banks, neural network hardware accelerators improve processing efficiency and reduce wait times through data parallel processing.

JP2024540139AActive Publication Date: 2024-10-31EDGECORTIX INC
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2024525511
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-10-26
Filing Date
2022-06-22
Publication Date
2024-10-31
Estimated Expiration
2042-06-22

AI Technical Summary

Technical Problem

Neural network hardware accelerators with multiple processors and memory banks face inefficiencies due to the need for processors to wait for access to memory banks, leading to delayed operations and increased processing time.

Method used

Configuring neural network hardware accelerators with multiple processors and memory banks to allow simultaneous reading and writing to multiple memory banks, utilizing a data bus for parallel data transfer and a controller to manage operations, enabling data parallel processing.

Benefits of technology

Reduces processing time by allowing multiple processors to operate concurrently, minimizing wait times and enhancing overall performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024540139000001_ABST
    Figure 2024540139000001_ABST
Patent Text Reader

Abstract

Neural network hardware accelerated data parallel processing is performed by an integrated circuit comprising a plurality of memory banks, each of the plurality of memory banks configured to store a value and transmit the stored value, a plurality of computational units, each of the plurality of computational units having a processor including circuitry configured to perform a mathematical operation on input data values ​​and weight values ​​to generate a result data value, and a computational controller configured to cause the transmission of the value to be received by more than one computational unit or memory bank.
Need to check novelty before this filing date? Find Prior Art

Description

[Background technology]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Non-provisional Application No. 17 / 510,397, filed October 26, 2021, which is incorporated by reference in its entirety. Real-time neural network (NN) inference is becoming widespread for computer vision or speech tasks on edge devices for applications such as autonomous vehicles, robotics, smartphones, portable healthcare devices, surveillance, etc. Dedicated NN inference hardware has become the mainstream method to provide power-efficient inference. [Brief description of the drawings]

[0002] Aspects of the present disclosure are best understood from the following detailed description when read in conjunction with the accompanying figures. It should be noted that, according to standard industry practice, various features have not been drawn to scale. In fact, dimensions of various features may be arbitrarily increased or decreased for clarity of discussion.

[0003] [Figure 1] FIG. 1 is a schematic diagram of an integrated circuit for neural network hardware accelerated data parallel processing in accordance with at least one embodiment of the present invention.

[0004] [Diagram 2] FIG. 1 is a schematic diagram of computational units and memory bank interconnections in an integrated circuit for neural network hardware accelerated data parallel processing in accordance with at least one embodiment of the present invention.

[0005] [Diagram 3]1 is an operational flow for neural network hardware accelerated inference in accordance with at least one embodiment of the present invention.

[0006] [Figure 4] 13 is an operational flow for the transmission of result values ​​in accordance with at least one embodiment of the present invention.

[0007] [Diagram 5] FIG. 2 is a schematic diagram of a computational unit and memory bank interconnection during data parallel recording in accordance with at least one embodiment of the present invention.

[0008] [Figure 6] 1 is a graph of computational unit activity versus time during a read from a common memory bank in accordance with at least one embodiment of the invention.

[0009] [Figure 7] 1 is a graph of computational unit activity versus time during a read from separate memory banks in accordance with at least one embodiment of the invention.

[0010] [Figure 8] 1 is an operational flow for retrieving a value in accordance with at least one embodiment of the present invention.

[0011] [Figure 9] FIG. 2 is a schematic diagram of a compute unit and memory bank interconnect during data parallel read in accordance with at least one embodiment of the present invention.

[0012] [Figure 10A] 1 illustrates an exemplary configuration of a depth-wise convolution processor, according to an embodiment of the present invention.

[0013] [Figure 10B]1 illustrates an exemplary configuration of a per-channel pipeline for a depth-wise convolution processor, in accordance with an embodiment of the present invention.

[0014] [Figure 11] 3 illustrates an exemplary configuration of a point-wise convolution processor according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] The following disclosure provides many different embodiments or examples for implementing different features of the provided subject matter. Specific examples of components, values, operations, materials, or arrangements, etc. are described below to simplify the disclosure. Of course, these are merely examples and are not intended to be limiting. Other components, values, operations, materials, or arrangements, etc. are contemplated. In addition, the disclosure may repeat reference numerals and / or letters in the various examples. This repetition is for the purpose of brevity and clarity and does not in itself dictate a relationship between the various embodiments and / or configurations discussed.

[0016] Some neural network hardware accelerators perform inference operations by distributing such operations among multiple processors. Such neural network hardware accelerators also include multiple memory banks for holding various values ​​between operations. Each processor reads values ​​from any one of the memory banks for a calculation, but a single memory bank is only read by one processor at a time. The processor reading a memory bank places a lock on that memory bank to prevent other processors from interacting with that memory bank and potentially corrupting data. Similarly, each processor records the value resulting from the calculation in any one of the memory banks, but a single memory bank only receives values ​​from one processor at a time to prevent data corruption.

[0017] Inference for some types of neural networks involves performing more than one subsequent calculation on a value resulting from a single calculation. When performing inference on a neural network hardware accelerator with multiple processors, different processors can perform subsequent operations simultaneously. However, because only one processor at a time can read the value resulting from a single calculation, one of the processors must wait for the other processor to read the value, so one subsequent process is delayed compared to the other subsequent process.

[0018] In at least some embodiments herein, a neural network hardware accelerator comprising multiple processors and multiple memory banks is configured to allow each processor to store result values ​​in more than one memory bank. In at least some embodiments, the neural network hardware accelerator comprises an external memory interface configured to store values ​​in more than one memory bank. In at least some embodiments, the neural network hardware accelerator is configured to perform data parallel recording of values ​​resulting from at least some instructions. In at least some embodiments, recording each of at least some result values ​​in two memory banks while performing neural network inference results in a significant reduction in the amount of time required by the neural network hardware accelerator to complete an inference task due to reduced wait times for the processor to read values ​​from memory.

[0019] In at least some embodiments herein, a neural network hardware accelerator comprising multiple processors and multiple memory banks is configured such that each processor can read a value from the memory bank, such that the other processors are configured to receive a transmission of the value from the memory bank as the value is read. In at least some embodiments, configuring multiple processors to receive the same transmission from reading a value from a memory bank reduces the amount of time it takes multiple processors to individually read a value from the same memory bank.

[0020] Figure 1 is a schematic diagram of an integrated circuit 100 for neural network hardware accelerated data parallel processing in accordance with at least one embodiment of the present invention. In at least some embodiments, the integrated circuit 100 is a Field Programmable Gate Array (FPGA) that is programmed as shown in Figure 1. In at least some embodiments, the integrated circuit 100 is an Application Specific Integrated Circuit (ASIC) that includes dedicated circuitry as shown in Figure 1. The integrated circuit 100 includes a data bus 102, a general purpose controller 104, an external memory interface 106, multiple computational units, such as computational unit 110, and multiple memory banks, such as memory bank 120.

[0021] The data bus 102 comprises a number of interconnects connecting the computing units, the memory banks, and the external memory interface 106. In at least some embodiments, the data bus 102 is configured to facilitate the transfer of values ​​from any computing unit or the external memory interface 106 to any memory bank. In at least some embodiments, the data bus 102 is configured to facilitate the transfer of values ​​from any memory bank to any computing unit or the external memory interface 106. In at least some embodiments, the data bus 102 comprises passive interconnects.

[0022] In at least some embodiments, integrated circuit 100 includes a controller, such as general purpose controller 104, configured to receive instructions to perform neural network inference. General purpose controller 104 has circuitry configured to execute instructions to cause integrated circuit 100 to perform neural network inference. In at least some embodiments, general purpose controller 104 is configured to receive compiled instructions from a host processor. In at least some embodiments, the compiled instructions include a schedule of operations, designated computational units for performing each operation, designated memory banks and addresses for storing intermediate data, and any other details required for the integrated circuit to perform neural network inference.

[0023] The external memory interface 106 includes a memory bank and circuitry configured to allow the computing unit to exchange data with the external memory. In at least some embodiments, the external memory is a DRAM memory that communicates with a host processor. In at least some embodiments, the integrated circuit 100 stores a small working portion of data for neural network inference, while the DRAM memory stores the remainder of the data.

[0024] A computation unit, such as computation unit 110, has circuitry configured to perform mathematical operations on input values ​​and stored weight values ​​stored in a memory bank. In at least some embodiments, the computation unit outputs partial sums to the memory bank. In at least some embodiments, the computation unit performs accumulation using existing partial sums stored in the memory bank. In at least some embodiments, the computation unit has at least one processor configured to perform depthwise convolution or pointwise convolution. In at least some embodiments, the computation unit has a general-purpose convolution processor that supports a combination of depthwise convolution and pointwise convolution layers, such as the Inverted Residual Blocks in the MobileNet architecture. In at least some embodiments, the computation unit has a processor configured to perform other operations for inference of a deep network or any other type of neural network. In at least some embodiments, the integrated circuit 100 comprises a plurality of computation units, each of which has a processor including circuitry configured to perform mathematical operations on input data values ​​and weight values ​​to generate result data values, and a computation controller. In at least some embodiments, the computing unit is configured as shown in FIG. 2, which is described below.

[0025] A memory bank, such as memory bank 120, has circuitry configured to store data. In at least some embodiments, the memory bank has volatile data storage. In at least some embodiments, integrated circuit 100 comprises a plurality of memory banks, each of which is configured to store a value and transmit the stored value. In at least some embodiments, the memory banks are configured as shown in FIG. 2, which is described below.

[0026] 2 is a schematic diagram of a computational unit and memory bank interconnection in an integrated circuit for neural network hardware accelerated data parallel processing in accordance with at least one embodiment of the present invention. FIG. 2 shows a computational unit 210 and a memory unit 222 connected through a data bus 202.

[0027] The computation unit 210 includes a processor 212, a multiplexer 214, and a computation controller 216. In at least some embodiments, the processor 212 includes circuitry configured to perform mathematical operations. In at least some embodiments, the processor 212 is configured to perform a convolution operation, such as a point-wise convolution or a depth-wise convolution. In at least some embodiments, the processor 212 is configured to perform a point-wise convolution or a depth-wise convolution. In at least some embodiments, the processor 212 is configured to provide direct support for different parameters of the mathematical operations, such as a kernel size of height (KH) by width (KW), vertical and horizontal strides, dilation, padding, etc. The processor 212 includes a data input connected to the data bus 202 through the multiplexer 214, and includes a data output connected to the data bus 202.

[0028] The multiplexer 214 includes multiple inputs from the data bus 202 and a single output from the processor 212. In at least some embodiments, the multiplexer 214 is configured to select a data input connection from the data bus 202 to the processor 212. In at least some embodiments, the multiplexer 214 is configured to respond to a selection command, such as a signal, from the computation controller 216. In at least some embodiments, the multiplexer 214 includes an input from the data bus 202 for each memory bank in the integrated circuit. In at least some embodiments, each computation unit includes a computation multiplexer configurable to connect to one of the multiple memory banks. In at least some embodiments, each memory bank of the multiple memory banks is configured to store a value received through a corresponding bank multiplexer.

[0029] The computation controller 216 includes circuitry configured to operate the computation unit 210. In at least some embodiments, the computation controller 216 is configured to receive a signal from the general purpose controller of the integrated circuit and operate the computation unit 210 according to the received signal. In at least some embodiments, the computation controller 216 causes the multiplexer 214 to connect the processor 212 to a particular memory bank, causes the processor 212 to read one or more values ​​from the connected memory bank, causes the processor 212 to perform a mathematical operation on the one or more values, and then causes the processor 212 to store a resulting value in one or more memory banks. In at least some embodiments, the computation controller 216 is configured to receive input data values ​​from any of the multiple memory banks, receive weight values ​​from any of the multiple memory banks, cause the processor to perform the mathematical operation, and transmit the resulting data value to at least two of the multiple memory banks such that a single transmission of the resulting data value is received by the at least two memory banks at substantially similar times. In at least some embodiments, the computation controller 216 is further configured to set a lock for each of the at least two memory banks. In at least some embodiments, the computation controller 216 is further configured to apply a bank offset for one or more of the at least two memory banks. In at least some embodiments, the computation controller 216 is further configured to release a lock for each of the at least two memory banks. In at least some embodiments, the computation controller 216 is further configured to synchronize a second computation unit of the plurality of computation units to receive one of the input data values ​​or the weight value, and to read one of the input data values ​​or the weight value from a memory bank of the plurality of memory banks that stores one of the input data values ​​or the weight value, such that the memory bank that stores the one of the input data values ​​or the weight value performs a single transmission of the one of the input data values ​​or the weight value that will be read by the computation controller and the second computation unit at substantially similar times.

[0030] The memory unit 222 includes a memory bank 220, a multiplexer 224, and a memory controller 226. In at least some embodiments, the memory bank 220 has substantially the same structure and performs substantially the same functions as the memory bank 120 of FIG. 1, except as otherwise described below. The multiplexer 224 includes multiple inputs from the data bus 202 and a single output to the memory bank 220. In at least some embodiments, the multiplexer 224 is configured to select a data input connection from the data bus 202 to the memory bank 220. In at least some embodiments, the multiplexer 224 is configured to respond to a selection command, such as a signal, from the memory controller 226. In at least some embodiments, the multiplexer 224 includes inputs from the external memory interface and the data bus 202 for each computing unit in the integrated circuit. In at least some embodiments, each bank multiplexer 224 is configurable to connect to one of the computing units of the multiple computing units or to an external memory.

[0031] Memory controller 226 includes circuitry configured to operate memory unit 222. In at least some embodiments, memory controller 226 is configured to receive a signal from a general purpose controller of the integrated circuit and operate memory unit 222 according to the received signal. In at least some embodiments, memory controller 226 locks memory bank 220 in response to a signal received from a computing unit and causes memory bank 220 to transmit a stored value to one or more computing units. In at least some embodiments, memory controller 226 causes multiplexer 224 to connect memory bank 220 to a particular computing unit and cause memory bank 220 to record one or more values ​​transmitted from the connected computing unit.

[0032] Data bus 202 has substantially the same structure and performs substantially the same functions as data bus 102 of FIG. 1, except as otherwise described below. Data bus 202 has multiple interconnects, such as interconnect 203, that connect the compute units, memory banks, and external memory interfaces. Interconnect 203 connects memory bank 220 to multiplexer 214. In at least some embodiments, interconnect 203 is part of the wire that connects memory bank 220 to the multiplexers of all other compute units within the integrated circuit.

[0033] 3 is an operational flow for neural network hardware accelerated inference in accordance with at least one embodiment of the present invention. The operational flow may provide a method for neural network hardware accelerated data parallel processing. In at least some embodiments, the method is performed by a controller that includes sections for performing specific operations, such as the computational controller 216 shown in FIG. 2 or the general purpose controller 104 shown in FIG. 1.

[0034] At S330, the receiving section receives instructions to perform a mathematical operation on the values. In at least some embodiments, the instructions include a location for each value, each location identified by a memory bank identifier and an address within that memory bank. In at least some embodiments, the instructions indicate one or more mathematical operations to perform. In at least some embodiments, the instructions include one or more locations for recording a result value, each location identified by a memory bank identifier and an address within that memory bank. In at least some embodiments, the receiving section receives instructions for performing inference of the neural network by the integrated circuit. In at least some embodiments, the instructions for performing inference include a plurality of instructions for performing a mathematical operation. In at least some embodiments, the receiving section receives instructions from the general purpose controller based on the instructions for performing inference by the computing unit.

[0035] At S332, the retrieval section or a subsection thereof retrieves the data value. In at least some embodiments, the retrieval section retrieves the data value from one or more memory banks via a data bus. In at least some embodiments, the retrieval section selects an input of a multiplexer to connect to a memory bank that stores the data value. In at least some embodiments, the retrieval section retrieves the input data value by a first computing unit of a plurality of computing units included in an integrated circuit configured to perform neural network inference from a memory bank that stores the input data value, of a plurality of memory banks included in the integrated circuit. In at least some embodiments, the retrieval section configures a first multiplexer corresponding to the first computing unit to connect to the memory bank that stores the input data value. In at least some embodiments, the data value retrieval process is performed as described below with respect to FIG. 8.

[0036] At S333, the retrieval section or a subsection thereof retrieves the weight values. In at least some embodiments, the retrieval section retrieves the weight values ​​from one or more memory banks via a data bus. In at least some embodiments, the retrieval section selects an input of a multiplexer to connect to a memory bank that stores the weight values. In at least some embodiments, the retrieval section retrieves the weight values ​​from a memory bank of the plurality of memory banks that stores the weight values ​​by a first computation unit. In at least some embodiments, the retrieval section configures a first multiplexer to connect to one memory bank that stores the weight values. In at least some embodiments, the weight value retrieval process is performed as described below with respect to FIG. 8.

[0037] At S335, the computation section or a subsection thereof performs the mathematical operation. In at least some embodiments, the computation section performs the mathematical operation on the data values ​​retrieved at S332 and the weight values ​​retrieved at S333. In at least some embodiments, the computation section causes a processor, such as processor 212 in FIG. 2, to perform the mathematical operation. In at least some embodiments, the computation section performs, by a first computation unit, the mathematical operation on the input data values ​​and the weight values ​​to generate a result data value. In at least some embodiments, the computation section performs the mathematical operation on the result data values ​​of a previous iteration of the operation at S335 and the weight values ​​retrieved at S333.

[0038] At S336, the controller or a subsection thereof determines whether all operations in the instruction received at S330 have been performed. In at least some embodiments, the result value of the operation at S335 is subject to further operations before being stored in the memory bank. If the controller determines that the instruction includes further operations, the operational flow returns to retrieving the weight values ​​at S333. If the controller determines that all operations in the instruction have been performed, the operational flow proceeds to transmitting the result values ​​at S338.

[0039] At S338, the transmitting section or a subsection thereof transmits the result values ​​to one or more memory banks. In at least some embodiments, the transmitting section transmits the result values ​​to the one or more memory banks over a data bus. In at least some embodiments, the transmitting section causes the computation unit to transmit the result values. In at least some embodiments, the transmitting section instructs a multiplexer of each corresponding memory unit of the one or more memory banks to connect to the computation unit for recording. In at least some embodiments, the transmitting process of the result values ​​is performed as described below with respect to FIG. 4.

[0040] 4 is an operational flow for transmitting a result value in accordance with at least one embodiment of the present invention. The operational flow may provide a method for transmitting a result value, such as the operations performed at S338 in FIG. 3. In at least some embodiments, the method is performed by a transmitting section of a controller, such as the calculation controller 216 shown in FIG. 2 or the general purpose controller 104 shown in FIG. 1.

[0041] At S440, the transmission section or a subsection thereof determines whether the transmission involves recording one or more duplicates of the result value. In at least some embodiments, the instructions received by the controller indicate more than one memory location for a transmission involving duplicate recording. If the controller determines that the transmission does not involve duplicate recording, operational flow proceeds to a single bank lock at S442. If the controller determines that the transmission involves duplicate recording, operational flow proceeds to a multiple bank lock at S445.

[0042] At S442, the transmission section or a subsection thereof locks the single memory bank into which the result value is to be recorded. In at least some embodiments, the transmission section sets the lock on the single memory bank. In at least some embodiments, the transmission section instructs a memory controller of a corresponding memory unit to lock the memory bank for recording from the computation unit.

[0043] At S443, the transmit section or a subsection thereof sets a bank offset for a single memory bank where the result value is to be recorded. In at least some embodiments, the transmit section applies the bank offset for the single memory bank. In at least some embodiments, the instruction includes one or more bank offsets, each bank offset corresponding to a memory bank in the integrated circuit. In response to the single memory bank being associated with a bank offset in the instruction, in at least some embodiments, the transmit section adjusts an address in the memory bank based on the bank offset such that the result value is recorded at the specified address.

[0044] At S445, the transmitting section or a subsection thereof locks the memory banks into which the result values ​​are to be recorded. In at least some embodiments, the transmitting section sets the lock for each of the at least two memory banks. In at least some embodiments, the transmitting section instructs a memory controller of each corresponding memory unit to lock the memory bank for recording from the computation unit.

[0045] At S446, the transmit section or a subsection thereof sets bank offsets for the memory banks where the result value is to be recorded. In at least some embodiments, the transmit section applies the bank offsets for one or more of the at least two memory banks. In at least some embodiments, the instruction includes one or more bank offsets, each bank offset corresponding to a memory bank in the integrated circuit. In response to one or more of the memory banks being associated with a bank offset in the instruction, in at least some embodiments, the transmit section adjusts addresses in those memory banks based on the associated bank offsets such that the result value is recorded at the specified addresses.

[0046] At S448, the transmitting section or a subsection thereof transmits the result value to one or more banks locked to receive the result value at S442 or S445. In at least some embodiments, the transmitting section causes the computing unit to transmit the result value. In at least some embodiments, the transmitting section transmits the result data value by the first computing unit to at least two of the multiple memory banks such that the first computing unit makes a single transmission of the result data value that is received at a substantially similar time by the at least two memory banks. In at least some embodiments, the transmitting section transmits the result data value by the first computing unit to a single memory bank.

[0047] At S449, the transmit section or a subsection thereof unlocks one or more banks locked at S442 or S445. In at least some embodiments, the transmit section instructs the memory controller of each corresponding memory unit to unlock the memory bank. In at least some embodiments, the transmit section unlocks each of the at least two memory banks.

[0048] 5 is a schematic diagram of the interconnection of computing units and memory banks during parallel data recording in accordance with at least one embodiment of the present invention. The diagram includes an integrated circuit 500 including a data bus 502, a computing unit 510, a memory bank 520A, and a memory bank 520B. The data bus 502, the computing unit 510, and the memory banks 520A and 520B have substantially the same structure and perform substantially the same functions as the data bus 102, the computing unit 110, and the memory banks 120, respectively, of FIG. 1, except as otherwise described below.

[0049] During data parallel recording, the result value is transmitted to multiple memory banks, such as the operation at S448 of FIG. 4, where multiple memory banks are designated to record the result value thereon. During inference, in at least some embodiments, where the computation unit 510 is instructed to record the result value in memory bank 520A and memory bank 520B, the transmission section instructs the multiplexers of each corresponding memory unit of memory bank 520A and memory bank 520B to connect to the computation unit 510 for recording. In at least some embodiments, the interconnection through data bus 502 shown in FIG. 5 routes the output from the computation unit 510 to memory bank 520A and memory bank 520B. Thus, a single transmission from the computation unit 510 is received by both memory bank 520A and memory bank 520B. In at least some embodiments, the transmission is received by memory bank 520A at substantially the same time as the same transmission is received by memory bank 520B. In at least some embodiments, the time difference in receipt of the same transmission between memory bank 520A and memory bank 520B is due to the difference in physical distance between computing unit 510 and the respective memory banks. In at least some embodiments, the time difference in receipt is negligible. In at least some embodiments, errors in receipt of the transmission due to the time difference in receipt are eliminated by shortening the clock time of the integrated circuit.

[0050] 6 is a graph of computation unit activity and time during a read from a common memory bank in accordance with at least one embodiment of the present invention, where the horizontal axis represents computation units while the vertical axis represents time.

[0051] At T0, the first computation unit 610A starts to execute a sequence of operations including 660A, 662A, 664A, 666A, and 668A. At 660A, the first computation unit 610A receives a first input data value from a memory bank that stores the first input data value. At 662A, the first computation unit 610A locks a first memory bank that stores a weight value. At 664A, the first computation unit 610A receives a weight value from the first memory bank. At 666A, the first computation unit 610A executes a calculation on the first input data value and the weight value. At 668A, the first computation unit 610A releases the first memory bank. At T2, the sequence of operations executed by the first computation unit 610A is completed.

[0052] At T1, the second computing unit 610B starts executing a sequence of operations including 660B, 662B, 664B, 666B, and 668B. At 660B, the second computing unit 610B receives a second input data value from a memory bank that stores the second input data value. In at least some embodiments, the operations at 660A and 660B are executed simultaneously, i.e., T0=T1. In at least some embodiments, there is a delay between the execution of the operation at 660A and the execution of the operation at 660B. In at least some embodiments, once the second computing unit 610B receives the second input data value from the memory bank that stores the second input data value, the second computing unit 610B then proceeds to retrieve the weight value. However, while the first memory bank that stores the weight value is locked to the first computing unit 610A, the second computing unit 610B cannot retrieve the weight value from the first memory bank. In at least some embodiments, the second computation unit 610B waits until the first computation unit 610A releases the lock on the first memory bank to retrieve the weight values ​​from the first memory bank.

[0053] At T2, the second computing unit 610B continues executing the sequence of operations at 662B. At 662B, the second computing unit 610B locks the first memory bank. At 664B, the second computing unit 610B receives the weight values ​​from the first memory bank. At 666B, the second computing unit 610B performs a calculation on the second input data values ​​and the weight values. At 668B, the second computing unit 610B releases the first memory bank. In at least some embodiments where two computing units perform operations on the same values ​​stored in the same memory bank, the total amount of time used is approximately twice the amount of time that one computing unit uses to perform the operations.

[0054] 7 is a graph of computation unit activity and time during a read from separate memory banks in accordance with at least one embodiment of the present invention, where the horizontal axis represents computation units while the vertical axis represents time.

[0055] At T0, the first computation unit 710A starts to execute a sequence of operations including 760A, 762A, 764A, 766A, and 768A. At 760A, the first computation unit 710A receives a first input data value from a memory bank that stores the first input data value. At 762A, the first computation unit 710A locks a first memory bank that stores a weight value. At 764A, the first computation unit 710A receives a weight value from the first memory bank. At 766A, the first computation unit 710A executes a calculation on the first input data value and the weight value. At 768A, the first computation unit 710A releases the first memory bank. At T2, the sequence of operations executed by the first computation unit 710A is completed.

[0056] At T1, the second computation unit 710B begins executing a sequence of operations including 760B, 762B, 764B, 766B, and 768B. At 760B, the second computation unit 710B receives a second input data value from a memory bank that stores the second input data value. In at least some embodiments, the operations in 760A and 760B are executed simultaneously, i.e., T0=T1. In at least some embodiments, there is a delay between the execution of the operation in 760A and the execution of the operation in 760B. In at least some embodiments, once the second computation unit 710B receives the second input data value from the memory bank that stores the second input data value, the second computation unit 710B then proceeds to retrieve the weight value. In at least some embodiments, a first memory bank that stores weight values ​​is locked to a first computation unit 710A, while a second computation unit 710B retrieves weight values ​​from the second memory bank without waiting for the first computation unit 710A to release the lock on the first memory bank.

[0057] At 762B, the second computing unit 710B locks the second memory bank. At 764B, the second computing unit 710B receives the weight values ​​from the second memory bank. At 766B, the second computing unit 710B performs a calculation on the second input data values ​​and the weight values. At 768B, the second computing unit 710B releases the second memory bank. In at least some embodiments where two computing units perform operations on the same values ​​stored in separate memory banks, the total amount of time used is small or less than the amount of time that one computing unit uses to perform an operation. In at least some embodiments, data parallel recording where result values ​​are transmitted to multiple memory banks, such as the operation at S448 of FIG. 4 where multiple memory banks are designated to record result values ​​thereon, allows two computing units to perform operations on the same values ​​stored in separate memory banks, thereby reducing the overall time used by the integrated circuit to complete neural network inference. In at least some embodiments, data parallelism reduces dark silicon.

[0058] 8 is an operational flow for retrieving a value in accordance with at least one embodiment of the present invention. The operational flow may provide a method for retrieving a value, such as the operations performed at S332 or S333 in FIG. 3. In at least some embodiments, the method is performed by a retrieval section of a controller, such as the calculation controller 216 shown in FIG. 2 or the general purpose controller 104 shown in FIG. 1.

[0059] At S870, the fetch section or a subsection thereof determines whether the fetch involves broadcasting so that the secondary computing unit can read a transfer from the memory bank caused by the primary computing unit fetching a value from the memory bank. In at least some embodiments, the instruction received by the controller indicates more than one computing unit for a fetch with overlapping reads. If the controller determines that the transfer does not involve overlapping reads, the operational flow proceeds to bank lock at S874. If the controller determines that the transfer does involve overlapping reads, the operational flow proceeds to compute unit synchronization at S872.

[0060] At S872, the fetch section or a subsection thereof synchronizes the computation units. In at least some embodiments, the fetch section synchronizes the secondary computation unit with the primary computation unit. In at least some embodiments, the fetch section synchronizes the second computation unit to read one of the input data value and the weight value. In at least some embodiments, the fetch section instructs the secondary computation unit to prepare to read the value. In at least some embodiments, the fetch section applies a timing offset for the secondary computation unit when the physical distance of the secondary computation unit from the memory bank differs significantly from the physical distance of the primary computation unit from the memory bank.

[0061] At S874, the retrieval section or a subsection thereof locks the memory bank from which the value is to be read. In at least some embodiments, the retrieval section sets the lock on the memory bank for both the primary and secondary computing units. In at least some embodiments, the transmission section instructs a memory controller of a corresponding memory unit to lock the memory bank for retrieval of the value by both the primary and secondary computing units.

[0062] At S875, the fetch section or a subsection thereof sets a bank offset for the memory bank from which the value is to be read. In at least some embodiments, the fetch section applies the bank offset for the memory bank. In at least some embodiments, the instruction includes one or more bank offsets, each bank offset corresponding to a memory bank in the integrated circuit. In response to the memory bank being associated with a bank offset in the instruction, in at least some embodiments, the fetch section adjusts an address in the memory bank based on the bank offset such that the value is read from the specified address.

[0063] At S877, the retrieval section or a subsection thereof reads the value from the memory bank. In at least some embodiments, the retrieval section causes the primary computation unit to read the value from the memory bank. In at least some embodiments, the retrieval section reads, by the first computation unit, one of the input data values ​​or the weight values ​​from a memory bank of the plurality of memory banks that stores one of the input data values ​​or the weight values ​​such that the memory bank that stores one of the input data values ​​or the weight values ​​provides a single transmission of one of the input data values ​​or the weight values ​​that is read at substantially similar times by the first computation unit and the second computation unit.

[0064] At S879, the fetch section or a subsection thereof unlocks the memory bank that was locked at S874. In at least some embodiments, the fetch section instructs a memory controller of a corresponding memory unit to unlock the memory bank. In at least some embodiments, the fetch section releases the lock on the memory bank.

[0065] 9 is a schematic diagram of the interconnection of compute units and memory banks during data parallel readout in accordance with at least one embodiment of the present invention. The diagram includes an integrated circuit 900 including a data bus 902, compute units 910A, 910B, and a memory bank 920. Data bus 902, compute units 910A and 910B, and memory bank 920 have substantially the same structure and perform substantially the same functions as data bus 102, compute units 110, and memory bank 120, respectively, of FIG. 1, except as otherwise described below.

[0066] During a data parallel read process, such as the operation at S877 in FIG. 8 where multiple computing units are designated to read a value, a value is read from a single memory bank from multiple computing units. During inference, in at least some embodiments where computing unit 910A is instructed to synchronize with computing unit 910B to receive a transmission of a value from memory bank 920 when the value is read by computing unit 910A, the transmit section instructs the multiplexers of each of computing unit 910A and computing unit 910B to connect to memory bank 920 for reading. In at least some embodiments, the interconnection through data bus 902 shown in FIG. 9 routes the output from memory bank 920 to computing unit 910A and computing unit 910B. Thus, a single transmission from memory bank 920 is received by both computing unit 910A and computing unit 910B. In at least some embodiments, the transmission is received by computing unit 910A at substantially the same time that the same transmission is received by computing unit 910B. In at least some embodiments, the time difference in receipt of the same transmission between computing unit 910A and computing unit 910B is due to the difference in physical distance between memory bank 920 and the respective computing units. In at least some embodiments, the time difference in receipt is negligible. In at least some embodiments, errors in receipt of the transmission due to the time difference in receipt are eliminated by shortening the clock time of the integrated circuit.

[0067] 10A illustrates an exemplary configuration of a per-depth convolution processor 1012, according to an embodiment of the present invention. The per-depth convolution processor 1012 includes a queue 1012Q, a main sequencer 1012MS, a window sequencer 1012WS, an activation feeder 1012AF, a weighting feeder 1012WF, a pipeline controller 1012PC, a convolution pipeline 1012CP, external accumulation logic 1012A, and an accumulation memory interface 1012AI.

[0068] Queue 1012Q receives and transmits instructions. Queue 1012Q may receive instructions from a compute controller, such as compute controller 216 of FIG. 2, and transmit the instructions to main sequencer 1012MS. Queue 1012Q may be a FIFO memory or any other memory suitable for queuing instructions.

[0069] Primary sequencer 1012MS sequences the control parameters for the convolutions. Primary sequencer 1012MS may receive instructions from queue 1012Q and output instructions to window sequencer 1012WS. Primary sequencer 1012MS divides the KHxKW convolution into smaller convolutions of size 1x<window> and prepares instructions for activation data and weight values ​​according to the order of input fields within the kernel, where <window> refers to an architectural parameter that determines the line buffer length.

[0070] The Window Sequencer 1012WS sequences the control parameters for one 1x <window> convolution. The Window Sequencer 1012WS may receive instructions from the Main Sequencer 1012MS to output a data sequence of activation data, in the order of the input fields in the kernel, to the Activation Feeder 1012AF, and a data sequence of weight values, in the order of the input fields in the kernel, to the Weighting Feeder 1012WF.

[0071] The activation feeder 1012AF supplies activation data accessed from the memory banks through the data memory interface 1012DI to the convolution pipeline 1012CP according to the activation data indicated in the data sequence from the window sequencer 1012S. The activation feeder 1012AF may read enough activation data from the memory banks for a 1x <window> calculation into the line buffers of the convolution pipeline 1012CP.

[0072] The weight feeder 1012WF preloads the convolution pipeline 1012CP with weight values ​​accessed from the memory bank through the weight memory interface 1012WI according to the weight values ​​indicated in the data sequence from the window sequencer 1012S. The weight feeder 1012WF may read enough weight values ​​for a 1x<window> calculation from the weight memory into a weight buffer of the convolution pipeline 1012CP.

[0073] The pipeline controller 1012PC controls the data transfer operations of the convolution pipeline 1012CP. Once the current activation buffer contents are processed, the pipeline controller 1012PC may begin copying data from the line buffer to the activation buffer of the convolution pipeline 1012CP. The pipeline controller 1012PC may control the convolution calculations performed by each channel pipeline 1012CH of the convolution pipeline 1012CP, where each channel pipeline 1012CH operates on one channel of the input to the unit-depth convolution layer.

[0074] The convolution pipeline 1012CP performs mathematical operations on activation data provided by the activation feeder 1012AF and weight values ​​preloaded from the weight feeder 1012WF. The convolution pipeline 1012CP is divided into channel pipelines 1012CH, where each channel pipeline 1012CH performs mathematical operations for one channel. In combination with the activation feeder 1012AF, weight feeder 1012WF and pipeline controller 1012PC, the convolution pipeline logically performs the convolution calculations.

[0075] The external accumulation logic 1012A receives data from the convolution pipelines 1012CP and stores the data in a memory bank through an accumulation memory interface 1012AI. The accumulation logic 1012A includes an adder 1012P for each channel pipeline 1012CH. The accumulation logic 1012A may be used for point-wise summation of the results of a 1x <windowed> convolution with the contents of the memory bank.

[0076] In this embodiment, there are three channels exemplified by three window pipelines. However, other embodiments may have a different number of channels. Although possible, this embodiment shows three channels primarily for simplicity. Many embodiments include at least 16 channels to accommodate realistic applications.

[0077] 10B shows an exemplary configuration of a per-channel pipeline for a depth-wise convolution processor according to an embodiment of the present invention. The channel pipeline 1012CH includes a line buffer 1012LB, an activation buffer 1012AB, a weight buffer 1012WB, a number of multipliers 1012X, a number of adders 1012P, a delay register 1012DR, and an internal accumulation register 1012NB.

[0078] The line buffer 1012LB stores activation data received from the activation feeder 1012AF. The line buffer 1012LB may include a shift register that stores activation data read out by the activation feeder 1012AF one pixel per cycle.

[0079] Activation buffer 1012AB stores activation data received from line buffer 1012LB. Activation buffer 1012AB may include a set of registers that store the activation data to which the current convolution calculation is applied.

[0080] The weighting buffer 1012WB stores the weighting values ​​received from the weighting feeder 1012WF. The weighting buffer 1012WB may include a shift register that stores the weighting values ​​to which the current convolution calculation is applied.

[0081] Multipliers 1012X multiply activation data from activation buffer 1012AB with weight values ​​from weight buffer 1012WB. In this embodiment, there are three multipliers 1012X, meaning that the parallelism in the width or height dimension of the convolution kernel is three. Adders 1012P, which collectively form an addition tree, then add together the products of the activation data and the weight values. During this process, delay registers 1012DR, which are also considered part of the addition tree, balance the addition tree. Internal accumulation registers 1012IA aid the addition by storing partial sums. For example, internal accumulation registers 1012IA may be used for accumulation of partial sums when the number of windows of the buffer, which is six in this embodiment, and the width or height of the convolution filter are more than the parallelism, which is three.

[0082] Once the products are all added together as a sum, the sum is output to accumulation logic 1012A, which then stores the data in a memory bank through accumulation memory interface 1012AI.

[0083] 11 illustrates an exemplary configuration of a point-wise convolution processor in accordance with an embodiment of the present invention. The point-wise convolution processor 1112 includes a queue 1112Q, a main sequencer 1112S, a weighting memory interface 1112WI, a weighting feeder 1112WF, a weighting memory interface 1112WI, an activation feeder 1112AF, a data memory interface 1112DI, a systolic array 1112S, an accumulation logic 1112A, and an accumulation memory interface 1112AI.

[0084] Queue 1112Q receives and transmits instructions. Queue 1112Q may receive instructions from a compute controller, such as compute controller 216 of FIG. 2, and transmit the instructions to main sequencer 1112S. Queue 1112Q may be a FIFO memory or any other memory suitable for queuing instructions.

[0085] The primary sequencer 1112S sequences the control parameters for the convolutions. The primary sequencer 1112S may receive instructions from a queue 1112Q and output control sequences to the weight feeder 1112WF and the activation feeder 1112AF through the queues, respectively. In this embodiment, the primary sequencer 1112S splits the KHxKW convolution into a sequence of 1x1 convolutions, which are fed as control parameters to the weight feeder 1112WF and the activation feeder 1112AF.

[0086] The weight feeder 1112WF preloads the systolic array 1112SA with weight values ​​accessed from the memory banks through the weight memory interface 1112WI according to activation data indicated in the control parameters from the main sequencer 1112S.

[0087] The activation feeder 1112AF supplies activation data accessed from the memory bank through the data memory interface 1112DI to the systolic array 1112SA according to the activation data indicated in the data sequence from the main sequencer 1112S.

[0088] The systolic array 1112SA includes multiple MAC elements 1112M. Each MAC element 1112M is preloaded with a weight value from a weight feeder 1112WF before starting the calculation, and then receives an activation value from an activation feeder 1112F. Multiple weight buffers may be used to allow overlapping of the calculation and preloading of the weight values. The MAC elements 1112M are arranged in an array such that the product of the activation value and the weight output from the preceding MAC element 1112M is input to the succeeding MAC element 1112M. In this embodiment, for every cycle, each MAC element 1112M outputs an accumulation value equal to the value output from its left neighbor MAC element 1112M multiplied by the preloaded weight value 1112W, and the product is added to the value output from its upper neighbor MAC element 1112M. The bottom row MAC elements 1112M output their products to the accumulation logic 1112A.

[0089] The accumulation logic 1112A receives products from the systolic array 1112SA and stores the products in a memory bank. The accumulation logic 1112A includes an adder 1112P for each MAC element 1112M in the bottom row. In this embodiment, if the accumulation required by the primary sequencer 1112S reads the old value in the memory location to be written, the accumulation logic 1112A overwrites it with a sum with the new value. Otherwise, the accumulation logic 1112A writes the new value as is.

[0090] The pointwise convolution module 1112 may be useful in performing pointwise convolutions by splitting a single KHxKW convolution into multiple KHxKW 1x1 convolutions. For example, a 2x2 convolution may be replaced in an area of ​​a memory bank that corresponds to four different 1x1 convolutions. The pointwise convolution module 1112 may compute each 1x1 convolution as a dot product of a matrix of activation values ​​in the MAC element and a matrix of weight values ​​in the MAC element, and then sum the results of the 1x1 convolutions.

[0091] The convolutional processors of Figures 10A, 10B, and 11 are implemented in at least some embodiments configured to perform inference of convolutional networks. Other processors are used in at least some other embodiments configured to perform inference of other types of neural networks, including other types of deep networks.

[0092] At least some embodiments are described with reference to flow charts and block diagrams, whose blocks represent (1) steps of a process in which an operation is performed, or (2) sections of a controller responsible for performing an operation. In at least some embodiments, certain steps and sections are implemented by dedicated circuitry, programmable circuitry provided with computer readable instructions stored on a computer readable medium, and / or a processor provided with computer readable instructions stored on a computer readable medium. In at least some embodiments, the dedicated circuitry includes digital and / or analog hardware circuitry, including integrated circuits (ICs) and / or discrete circuits. In at least some embodiments, the programmable circuitry comprises reconfigurable hardware circuitry, e.g., field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), etc., including logical AND, OR, XOR, NAND, NOR and other logic operations, flip-flops, registers, memory elements, etc.

[0093] In at least some embodiments, a computer readable storage medium includes a tangible device that can maintain and store instructions for use by an instruction execution device. In some embodiments, a computer readable storage medium includes, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes the following: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge-in-groove structures with instructions recorded thereon, and any suitable combination of the above. As used herein, a computer-readable storage medium should not be construed as being a transitory signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted through wires.

[0094] In at least some embodiments, the computer readable program instructions described herein can be downloaded from a computer readable storage medium to the respective computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. In at least some embodiments, the network includes copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. In at least some embodiments, a network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing / processing device.

[0095] In at least some embodiments, the computer readable program instructions that perform the operations described above are either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including object oriented programming languages, such as Smalltalk or C++, and traditional procedural programming languages, such as the "C" programming language or similar programming languages. In at least some embodiments, the computer readable program instructions execute entirely on the user's computer, partially on the user's computer as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In at least some embodiments, in the latter scenario, the remote computer is connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection is made to an external computer (e.g., through the Internet using an Internet Service Provider). In at least some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), executes computer readable program instructions by utilizing state information of the computer readable program instructions that adapts the electronic circuitry to perform aspects of the invention.

[0096] Although the embodiments of the present invention have been described, the scope of any subject matter described in the claims is not limited to the above-described embodiments. Those skilled in the art will understand that various modifications and improvements to the above-described embodiments are possible. Those skilled in the art will also understand that the embodiments with such modifications or improvements within the scope of the claims are included in the technical scope of the present invention.

[0097] The operations, procedures, steps, and stages of each process performed by the apparatus, system, program, and method shown in the claims, embodiments, or figures can be performed in any order, unless the order is indicated by "prior to" or "before" or the like, and unless output from a previous process is used in a later process. Even if a process flow is described in the claims, embodiments, or figures using phrases such as "first" or "next," such description does not necessarily mean that the processes must be performed in the order described.

[0098] Neural network hardware accelerated data parallel processing is performed by an integrated circuit comprising a plurality of memory banks, each of the plurality of memory banks configured to store a value and transmit the stored value, a plurality of computational units, each of the plurality of computational units having a processor including circuitry configured to perform a mathematical operation on input data values ​​and weight values ​​to generate a result data value, and a computational controller configured to cause the transmission of the value to be received by more than one computational unit or bank.

[0099] The above outlines features of some embodiments so that those skilled in the art may better understand aspects of the present disclosure. Those skilled in the art should understand that the present disclosure can be readily used as a basis for designing or modifying other processes and structures to carry out the same purpose and / or achieve the same advantages as the embodiments introduced herein. Those skilled in the art should also recognize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that various changes, substitutions, and alterations of the present disclosure are possible without departing from the spirit and scope of the present disclosure.

Claims

1. a plurality of memory banks, each memory bank of the plurality of memory banks configured to store a value and transmit the stored value; Multiple Computing Units wherein each computing unit of the plurality of computing units: A processor including circuitry configured to perform mathematical operations on the input data values ​​and the weighting values ​​to generate result data values; and 1. A computational controller comprising: The input data value is received from any one of the plurality of memory banks. The weight value is received from one of the plurality of memory banks. causing said processor to perform said mathematical operations; and transmitting the resulting data value to at least two of the plurality of memory banks such that a single transmission of the resulting data value is received by the at least two memory banks at substantially similar times. A calculation controller configured as follows:

1. An integrated circuit comprising:

2. The integrated circuit of claim 1 , further comprising a controller configured to receive instructions to perform neural network inference.

3. The integrated circuit of claim 1 or 2, wherein the computational controller is further configured to set a lock for each of the at least two memory banks.

4. The integrated circuit of claim 1 or 2, wherein the computational controller is further configured to apply a bank offset for one or more of the at least two memory banks.

5. The integrated circuit of claim 1 or 2, wherein the computational controller is further configured to release a lock on each of the at least two memory banks.

6. The computation controller of a first computation unit of the plurality of computation units, synchronizing a second computing unit of the plurality of computing units to receive one of the input data values ​​or the weight values; and reading the input data values ​​or the weight values ​​from the memory banks of the plurality of memory banks that store the one of the input data values ​​or the weight values ​​such that the memory banks that store the one of the input data values ​​or the weight values ​​perform a single transmission of the one of the input data values ​​or the weight values ​​that will be read by the computation controller and the second computation unit at substantially similar times; 3. The integrated circuit of claim 1, further configured as follows:

7. 3. An integrated circuit as claimed in claim 1 or 2, wherein the processor is configured to perform point-wise or depth-wise convolution.

8. 3. The integrated circuit of claim 1, wherein each memory bank of the plurality of memory banks is configured to store a value received through a corresponding bank multiplexer.

9. The integrated circuit of claim 8 , wherein the bank multiplexer is configurable to connect to a compute unit of the plurality of compute units or to an external memory.

10. 3. The integrated circuit of claim 1 or 2, wherein each computation unit of the plurality of computation units further comprises a computation multiplexer configurable to connect to one of the plurality of memory banks.

11. a first computing unit of a plurality of computing units included in an integrated circuit configured to perform neural network inference retrieving an input data value from a memory bank that stores the input data value, the memory bank being included in the integrated circuit; the first calculation unit retrieving the weight values ​​from a memory bank that stores the weight values ​​among the plurality of memory banks; the first computation unit performing a mathematical operation on the input data values ​​and the weighting values ​​to generate a result data value; and transmitting said result data value to at least two of said plurality of memory banks such that said first computation unit performs a single transmission of said result data value which is received at substantially the same time by said at least two of said plurality of memory banks. A method comprising:

12. The method of claim 11 further comprising the integrated circuit receiving instructions to perform neural network inference.

13. 13. The method of claim 11 or 12, wherein the step of retrieving the input data values ​​comprises configuring a first multiplexer corresponding to the first computation unit to connect to the memory bank that stores the input data values, and the step of retrieving the weight values ​​comprises configuring the first multiplexer to connect to the memory bank that stores the weight values.

14. 13. A method according to claim 11 or 12, wherein the step of transmitting the result data value comprises setting a lock on each of the at least two memory banks.

15. 13. The method of claim 11 or 12, wherein transmitting the result data value comprises applying a bank offset for one or more of the at least two memory banks.

16. 13. The method of claim 11 or 12, wherein the step of transmitting the result data value comprises releasing a lock on each of the at least two memory banks.

17. The step of retrieving one of the input data values ​​or the weight values ​​comprises: synchronizing a second calculation unit to read out said one of said input data values ​​or said weight values; and The first calculation unit reads out the input data value or the weight value from the memory bank of the plurality of memory banks that stores the input data value or the weight value, such that the memory bank that stores the input data value or the weight value provides a single transmission of the input data value or the weight value that is read out at substantially similar times by the first calculation unit and the second calculation unit.

13. The method of claim 11 or 12, comprising:

18. a plurality of memory banks, each memory bank of the plurality of memory banks configured to store a value and to transmit the stored value; and a plurality of computing units, each computing unit of the plurality of computing units comprising: a processor including circuitry configured to perform mathematical operations on input data values ​​and weight values ​​to generate result data values; and Calculation Controller wherein the computation controller of a first computation unit of the plurality of computation units comprises: synchronizing a second computing unit of the plurality of computing units to receive one of the input data values ​​or the weight values; and reading the input data values ​​or the weight values ​​from the memory banks of the plurality of memory banks that store the one of the input data values ​​or the weight values ​​such that the memory banks that store the one of the input data values ​​or the weight values ​​perform a single transmission of the one of the input data values ​​or the weight values ​​that will be read by the computation controller and the second computation unit at substantially similar times; It is configured as follows:

1. An integrated circuit comprising:

19. The computing controller includes: The input data value is received from any one of the plurality of memory banks. The weight value is received from one of the plurality of memory banks. causing said processor to perform said mathematical operations; and transmitting the resulting data value to at least two of the plurality of memory banks such that a single transmission of the resulting data value is received by the at least two memory banks at substantially similar times.

20. The integrated circuit of claim 18, further configured to:

20. 20. The integrated circuit of claim 18 or 19, wherein the computational controller is further configured to set a lock for each of at least two memory banks of the plurality of memory banks.

Citation Information

Patent Citations

  • Neural network training under memory restraint

    CN113469354A

  • Gradient compression for distributed training

    DE102021107050A1

  • On-chip computational networks

    JP2021506032A

  • Neural network accelerator run-time reconfigurability

    JP2022105467A

  • Neural network accelerator run-time reconfigurability

    US11144822B1