Runtime Configurable Register Files for Artificial Intelligence Workloads

The elastic register file system dynamically allocates capacity within AI accelerators based on data sparsity and stationarity, addressing inefficiencies in existing systems by optimizing memory usage and enhancing performance and energy efficiency.

JP2024539796AActive Publication Date: 2024-10-31INTEL CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023574336
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-11-18
Filing Date
2022-10-14
Publication Date
2024-10-31
Estimated Expiration
2042-10-14

AI Technical Summary

Technical Problem

Existing AI accelerator systems face inefficiencies in memory management due to statically allocated register files, which do not account for data sparsity, stationarity, and tensor shape variations across different layers of neural networks, leading to suboptimal performance and resource wastage.

Method used

Implementing an elastic register file system within AI accelerators that allows dynamic allocation of register capacity on a layer-by-layer basis, utilizing input and output multiplexers to distribute capacity based on data sparsity and stationarity, optimizing memory usage through capacity borrowing between different tensors.

Benefits of technology

Enhances performance by reducing data movement and memory access, improving energy efficiency, and optimizing data reuse across different layers of neural networks, thereby enhancing the overall efficiency of AI accelerator systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024539796000001_ABST
    Figure 2024539796000001_ABST
Patent Text Reader

Abstract

Systems and methods for performing artificial intelligence (AI) inference are disclosed that include programming an AI accelerator circuit to solve an AI problem using multiple layer-specific register file (RF) size distributions, where the AI ​​accelerator circuit comprises processing elements (PEs) having respective associated RFs, the RFs being individually divided into K sub-banks of size B bytes, where B and K are integers, and the RFs include circuitry for individually allocating the sub-banks to one of input features (IFs), output features (OFs), or filter weights (FLs), where programming the multiple layer-specific RF size distributions includes taking into account sparse data within the layer; and causing the AI ​​accelerator circuit to run the AI ​​problem including applying the layer-specific RF size distributions at runtime.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application claims the benefit of U.S. Non-Provisional Application No. 17 / 530,156, filed November 18, 2021, and entitled "Runtime Configurable Register Files for Artificial Intelligence Workloads," which hereby incorporates by reference the entire contents of that U.S. Non-Provisional Application for all purposes.

[0002] This specification relates to the field of artificial intelligence, and more specifically, but not exclusively, to run-time configurable register files for artificial intelligence workloads. [Background technology]

[0003] Artificial intelligence is a subfield of computer science in which computers or circuits are programmed to learn from data and update their algorithms based on this learning. One popular type of artificial intelligence (AI) circuit is the neural network (NN). If the NN has multiple convolutional layers between the input layer and the output layer, it can be referred to as a deep neural network (DNN). One popular species of DNN is the convolutional neural network (CNN). To realize performance advantages, the AI ​​circuit can be realized in a hardware accelerator, which can be, for example, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or some other hardware platform. The accelerator can be used to offload AI tasks to a hardware circuit, where the AI ​​tasks can be executed faster than in a general-purpose processor.

[0004] The accelerator may operate on multiple input and output tensors, such as input features (IF), output features (OF), and filter weights (FL), which may be stored in a dedicated register file, which may be a high-speed memory circuit associated with each processing element in the AI ​​accelerator circuit. The register file (RF) is much faster to access than higher level memories, such as static random access memory (SRAM). In at least some existing systems, the RF is statically allocated among the IFs, OFs, and FLs. For example, each tensor may be allocated a 64-byte register. Static register allocation may result in inefficiencies in memory management, at least in some cases. [Brief description of the drawings]

[0005] The present disclosure is best understood from the following detailed description when read in conjunction with the accompanying drawings. It is emphasized that, in accordance with standard industry practice, various features are not necessarily drawn to scale, but are used for illustrative purposes only. Where scale is explicitly or implicitly indicated, it provides only one illustrative example. In other embodiments, the dimensions of various features may be arbitrarily increased or decreased for clarity of discussion. Furthermore, the various block diagrams shown herein disclose only one illustrative arrangement of logical elements. Those elements may be rearranged in different configurations, and elements shown in one block may be moved to a different block or configuration, in appropriate circumstances.

[0006] [Figure 1] FIG. 2 is a block diagram of a hardware circuit according to various embodiments.

[0007] [Diagram 2] FIG. 2 is a block diagram of a sub-circuit according to various embodiments.

[0008] [Figure 3A]FIG. 1 is a block diagram of selected elements of a static RF ecosystem according to various embodiments.

[0009] [Figure 3B] FIG. 2 is a diagram of an alternative schedule generator according to various embodiments.

[0010] [Figure 4] 1A-1C are block diagrams of two register files illustrating the differences between fixed capacity and dynamic register files, according to various embodiments.

[0011] [Diagram 5] 1 is a block diagram illustrating selected aspects of an elastic register file scheme, according to various embodiments.

[0012] [Figure 6] 1 is a graph illustrating relative hardware costs of different configurations, according to various embodiments.

[0013] [Figure 7] 1 is a graph illustrating the percentage reduction in total SRAM load accesses from using an example elastic register file, in accordance with various embodiments.

[0014] [Figure 8] FIG. 1 is a block diagram of selected elements of a system-on-chip (SoC) according to various embodiments.

[0015] [Figure 9] FIG. 1 illustrates machine learning according to a "textbook" problem with a real-world application, according to various embodiments.

[0016] [Figure 10] 1 is a flowchart of a method that may be used to train a neural network, according to various embodiments.

[0017] [Figure 11] 1 is a flowchart of a method of using a neural network to classify objects, according to various embodiments.

[0018] [Figure 12] FIG. 2 is a block diagram illustrating selected elements of an analyzer engine according to various embodiments.

[0019] [Figure 13] FIG. 1 is a block diagram of a circuit programming ecosystem according to various embodiments.

[0020] [Figure 14] 1 is a flowchart of a method for programming a hardware circuit, according to various embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] Summary This specification provides flexible or elastic RF in AI accelerator circuits, or other circuits that can benefit from elastic registers. In some existing systems, a register file (RF) is assigned to each processing element (PE) that is divided among three separate tensors (e.g., IF, OF, and FL). If each tensor is allocated 64 bytes, for example, the total RF is 192 bytes. Because the accelerator is a hardware circuit, the RF has a fixed configuration with a fixed division among the three registers for the three tensors.

[0022] Some existing systems have sought to better utilize the RF space, for example, by splitting the RF into non-uniform sizes, e.g., 128 bytes for the IF and 32 bytes for each of the OF and FL. For example, an FPGA can be programmed to provide hardware circuits at speeds that are similar to those achieved in an ASIC. An FPGA can be programmed with a non-uniform register file (e.g., the sizes of the IF, FL, and OF registers do not need to be identical to each other). This may achieve better data utilization in some layers, but may have an adverse effect in other layers. Again, because the accelerator is a hardware circuit, the register file cannot be modified at run-time, for example, to account for data sparsity, data stationarity, or tensor shape within a given layer.

[0023] However, these factors may be known in advance, and different register file configurations may realize performance benefits at different tiers. For example, if the IFs are highly stationary at tier 2, it may be advantageous to provide larger registers (e.g., 128 bytes) for the IFs at that tier. However, if the IFs are not stationary at tier 3, a register configuration that was very efficient at tier 2 may become very inefficient at tier 3.

[0024] Therefore, it is desirable to provide a system with flexible register file allocation per layer. Given a flexible register file, the register configuration can be optimized on a per-layer basis before the AI ​​problem is loaded into the hardware accelerator. AI system designers know at design time the data sparsity, tensor shape, and data stationarity that occurs at each layer. Based on those factors, the designer can schedule registers to have more or less capacity for a given layer to optimize memory usage. In general, data with high stationarity may better utilize larger registers, while sparse data may better utilize smaller registers.

[0025] To provide flexible registers, hardware accelerators can be provided with elastic register files. These include register files that are divided into multiple sub-banks of a given number of bytes each. An input multiplexer and an output demultiplexer are connected to the input and output of the register bank, respectively. This allows the system programmer to select the tensor (i.e., one of IF, FL, or OF) individually for each sub-bank. The system designer can create a per-layer register schedule that takes into account the data shape and structure of each layer. This register schedule can be loaded into the accelerator circuitry before the AI ​​network is executed, and the accelerator can then apply the schedule to each layer as it activates.

[0026] The teachings herein may be embodied in a variety of example implementations. One example includes a method comprising: generating a plurality of layer-specific register schedules for a deep learning neural network, where at least two layer-specific register schedules are different from each other, the layer-specific register schedules for dividing a register file into a plurality of tensor-specific registers, the register file including a plurality of discrete sub-banks, each of the tensor-specific registers including one or more of the sub-banks; and programming a configuration register to provide the layer-specific register schedules; programming an AI hardware circuit with the plurality of layer-specific register schedules; and instructing the AI ​​hardware circuit to start.

[0027] An example is also disclosed in which the multiple tensor-specific registers include registers for input features (IF), output features (OF), and filter weights (FL).

[0028] An example is also disclosed in which the layer specific register schedule is for multiple register files, and the schedule for the multiple register files is the same within a layer.

[0029] An example is also disclosed in which the register file is associated with each PE of the AI ​​hardware circuit.

[0030] An example is also disclosed in which generating a layer-specific register schedule includes providing smaller registers for tensors with sparse data in a layer compared to tensors with non-sparse data in the layer.

[0031] An example is also disclosed in which generating a layer-specific register schedule comprises providing excess capacity for tensors with high stationarity within the layer.

[0032] An example is also disclosed in which generating a layer specific register schedule comprises taking into account tensor shapes within the layer.

[0033] One example is a method of performing AI inference, comprising: programming an AI accelerator circuit to solve an AI problem using multiple layer-specific register file (RF) size distributions, where the AI ​​accelerator circuit comprises a PE with a respective associated RF, the RF being divided into K sub-banks of size B bytes each, where B and K are integers, and the RF includes circuitry for individually allocating the sub-banks to one of input features (IF), output features (OF), or filter weights (FL), where programming the multiple layer-specific RF size distributions includes taking into account sparse data within the layer; and causing the AI ​​accelerator circuit to execute the AI ​​problem including applying the layer-specific RF size distributions at runtime.

[0034] An example is also disclosed in which the PE is a multiply-accumulate unit (MAC).

[0035] An example is also disclosed where B is one of 1, 2, 4, 8, 16, 32, 64, or 128.

[0036] An example is also disclosed where B is between 1 and 128.

[0037] An example is also disclosed in which the AI ​​circuit is a DNN.

[0038] An example is also disclosed in which the AI ​​circuit is a CNN.

[0039] An example is also disclosed in which programming the plurality of layer-specific RF size distributions includes taking into account stationary data within the particular layer, where stationary data includes data that changes infrequently within the particular layer.

[0040] One example is a multi-layer memory system including a plurality of substantially identical processing element circuits, where the plurality of PE circuits are configured to provide discrete mathematical operations for the AI ​​accelerator circuit to execute an AI algorithm; a plurality of register files communicatively coupled to and associated with respective ones of the PE circuits, where the register files are configured to store at least two types of data, the register files having a total capacity C divided into K sub-banks of B bytes each. TOT and a control circuit configured to change, at run-time, the sub-bank assignments for different layers of a neural network of the AI ​​accelerator.

[0041] An example is also disclosed in which the PE circuit is a multiply-accumulate unit (MAC).

[0042] An example is also disclosed in which the PE circuits are substantially identical to each other in hardware.

[0043] An example is also disclosed in which the control circuitry comprises an input multiplexer and an output demultiplexer for each of the sub-banks.

[0044] An example is also disclosed in which the at least two species of data includes three species of data.

[0045] An example is also disclosed in which the three types of data include input features (IF), output features (OF), and filter weights (FL).

[0046] An example is also disclosed, wherein the register file includes at least one dedicated sub-bank for each of the at least two types of data.

[0047] An example is also disclosed in which the dedicated sub-bank does not have input and output multiplexers.

[0048] An example where B=1 is also disclosed.

[0049] An example where B=4 is also disclosed.

[0050] An example is also disclosed where B=8.

[0051] An example where B=16 is also disclosed.

[0052] An example is also disclosed where B=32.

[0053] An example is also disclosed in which the type of data includes tensor inputs and / or outputs for the AI ​​algorithm.

[0054] An example is also disclosed in which the neural network is a CNN.

[0055] An example is also disclosed in which the CNN is a DNN.

[0056] An example is also disclosed that further comprises counters and glue logic circuitry for maintaining state data regarding the active layer and the DNN.

[0057] An example is also disclosed in which the control circuit is for allocating the sub-banks according to layer-wise attributes of a hidden layer of the DNN.

[0058] An example is also disclosed, in which the control circuitry is for taking data sparsity into account when allocating the sub-banks.

[0059] An example is also disclosed in which the control circuitry is for taking into account per-layer tensor dimensions when allocating the sub-banks.

[0060] An example is also disclosed in which the AI ​​accelerator circuit is an ASIC.

[0061] An example is also disclosed in which the AI ​​accelerator circuit is an FPGA.

[0062] An example is also disclosed in which the AI ​​accelerator circuit is an intellectual property (IP) block.

[0063] Also disclosed is an example of one or more tangible, non-transitory storage media having stored thereon one or more masks or instructions that create or implement the AI ​​accelerator circuitry.

[0064] An example of an apparatus is also disclosed that includes a processing element circuit configured to perform a computation using a plurality of input and / or output types; a register file communicatively coupled to the PE circuit and including a plurality of hardware sub-registers; and a run-time programmable selection circuit that allocates the sub-registers of the register file to respective ones of the input and / or output types.

[0065] An example is also disclosed in which the PE circuitry is for performing mathematical operations for AI problems.

[0066] An example is also disclosed in which the PE circuit is a multiply-accumulate unit (MAC).

[0067] An example is also disclosed that further comprises a plurality of PE circuits with respective associated register files.

[0068] An example is also disclosed in which the multiple PE circuits are substantially identical to one another.

[0069] An example is also disclosed in which the selection circuit includes an input multiplexer and an output demultiplexer.

[0070] An example is also disclosed in which the input and / or output species include three species of input and / or output values.

[0071] An example is also disclosed in which the register file includes K sub-registers of a common size B bytes.

[0072] An example where B=1 is also disclosed.

[0073] An example where B=4 is also disclosed.

[0074] An example is also disclosed where B=8.

[0075] An example where B=16 is also disclosed.

[0076] An example is also disclosed where B=32.

[0077] An example is also disclosed in which the register file includes at least one dedicated sub-register for each of the input and / or output types.

[0078] An example is also disclosed in which the dedicated sub-register does not have a selection circuit.

[0079] An example is also disclosed in which the input and / or output types include tensor inputs and / or outputs for AI problems.

[0080] An example is also disclosed in which the PE circuit is for providing a CNN for the AI ​​problem.

[0081] An example is also disclosed in which the CNN is a DNN.

[0082] An example is also disclosed that further comprises counters and glue logic circuitry for maintaining state data regarding the active layer and the DNN.

[0083] An example is also disclosed that further comprises control circuitry for programming the selection circuitry at run-time.

[0084] An example is also disclosed in which the control circuitry is for taking data sparsity into account when allocating the sub-registers.

[0085] An example is also disclosed in which the control circuitry is for taking into account per-layer tensor dimensions when allocating the sub-registers.

[0086] An example is also disclosed in which the input and / or output species include an input feature (IF) tensor, an output feature (OF) tensor, and a filter weight (FL) tensor.

[0087] An example is also disclosed in which the device is an AI accelerator circuit.

[0088] An example is also disclosed in which the AI ​​accelerator circuit is an ASIC.

[0089] An example is also disclosed in which the AI ​​accelerator circuit is an FPGA.

[0090] An example is also disclosed in which the AI ​​accelerator circuit is an IP block.

[0091] Also disclosed is an example of one or more tangible, non-transitory storage media having stored thereon one or more masks or instructions that create or implement the AI ​​accelerator circuitry.

[0092] Also disclosed is an example of a method for performing AI inference, comprising: receiving input data; providing the input data to an input layer of a DNN circuit, where the DNN circuit comprises a PE having a respective register file, the respective register file including K banks of B-byte sub-registers partitionable among Input Feature (IF), Output Feature (OF), and Filter Weight (FL) tensors; programming the respective register files with layer-wise allocation among IF, OF, and FL for hidden layers of the DNN, where the layer-wise allocation takes into account tensor shapes within the layer; and providing an inference as an output.

[0093] An example is also disclosed in which the PE is a multiply-accumulate unit (MAC).

[0094] An example where B=1 is also disclosed.

[0095] An example where B=4 is also disclosed.

[0096] An example is also disclosed where B=8.

[0097] An example where B=16 is also disclosed.

[0098] An example is also disclosed where B=32.

[0099] An example is also disclosed in which the DNN is a CNN.

[0100] An example is also disclosed that further comprises considering data sparsity within a layer.

[0101] An example of an apparatus comprising means for carrying out the method is also disclosed.

[0102] An example is also disclosed in which the means for performing the method includes an AI accelerator circuit.

[0103] An example is also disclosed in which the AI ​​accelerator circuit is an ASIC.

[0104] An example is also disclosed in which the AI ​​accelerator circuit is an FPGA.

[0105] An example is also disclosed in which the AI ​​accelerator circuit is an IP block.

[0106] Also disclosed is an example of one or more tangible, non-transitory storage media having stored thereon one or more masks or instructions that create or implement the AI ​​accelerator circuitry.

[0107] An example is also disclosed in which the means for performing the method includes a processor and a memory.

[0108] An example is also disclosed in which the memory includes machine-readable instructions that, when executed, cause the device to perform the method.

[0109] Also disclosed is an example of at least one computer-readable medium containing instructions that, when executed, implement a method or realize an apparatus as described above.

[0110] A further example provides one or more tangible, non-transitory computer-readable media having stored thereon instructions for configuring a deep neural network (DNN) accelerator circuit, the instructions comprising: generating a plurality of layer-specific register schedules for the DNN accelerator circuit, where at least two layer-specific register schedules are different from each other, the layer-specific register schedules for partitioning a register file into a plurality of tensor-specific registers, the register file including a plurality of discrete sub-banks, each of the tensor-specific registers including one or more of the sub-banks; transmitting the plurality of layer-specific register schedules along with a deep learning problem to a neural network hardware accelerator; and instructing the DNN accelerator circuit to begin execution.

[0111] An example is also disclosed in which the multiple tensor-specific registers include registers for input features (IF), output features (OF), and filter weights (FL).

[0112] An example is also disclosed in which the layer specific register schedule is for multiple register files, and the schedule for the multiple register files is the same within a layer.

[0113] An example is also disclosed in which the register file is associated with each processing element of the neural network accelerator circuit.

[0114] An example is also disclosed in which generating a layer-specific register schedule includes providing smaller registers for tensors with sparse data in a layer compared to tensors with non-sparse data in the layer.

[0115] An example is also disclosed in which generating a layer-specific register schedule comprises providing excess capacity for tensors with high stationarity within the layer.

[0116] An example is also disclosed in which generating a layer-specific register schedule includes considering tensor shapes within the layer.

[0117] The following disclosure provides many different embodiments or examples for implementing different features of the present disclosure. Specific examples of components and arrangements are described below to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting. Furthermore, the present disclosure may repeat reference numbers and / or letters in various examples. This repetition is for the purpose of brevity and clarity and does not inherently dictate a relationship between the various embodiments and / or configurations discussed. Different embodiments may have different advantages, and a particular advantage is not necessarily required for every embodiment.

[0118] A DNN operates by propagating output values ​​from one layer to the next, using the output values ​​of the previous layer as input values ​​in the immediately following layer. A more detailed description of the operation of a DNN is shown in Figures 9-12 below. In Figure 9, the inputs and outputs of each layer may be tensors, which are N-dimensional arrays of values ​​(where "N" is an integer) as described in more detail below. In general, a hardware platform or hardware accelerator that provides a CNN may include a bank of processing elements (PEs). The PEs may be, for example, multiply-accumulate (MAC) circuits that perform discrete convolution operations for each neuron in each layer. The MACs access the tensors and

number

number

number

number

[0119] These tensors may be stored in a main memory structure, or multiple layers of memory such as DRAM, SRAM, or one or more layers of caches to ensure that the MAC circuitry operates at true hardware speeds, while the values ​​for each layer may be loaded into a hardware RF associated with the MAC unit. For example, there may be one RF or set of RFs for each MAC unit, or one set of RFs for each group of n MAC units. These RFs are very fast storage locations, similar to hardware registers in a general purpose central processing unit (CPU). The MAC unit may access the registers in a single or a few clock cycles, versus a higher level cache or memory that may be accessible in tens, hundreds, or thousands of clock cycles.

[0120] Throughout the remainder of this document, an exemplary embodiment in which there is one register file allocated for each MAC unit is used as an example. These examples can be extended to other configurations. This document provides data-flow-aware and sparsity-aware elastic capacity for input features (IF) or input activations, output features (OF) or output activations, and filter weights (FL). For example, each MAC unit can store a total capacity C TOT register files, the total capacity of which may be elastically or dynamically divided among the IF, OF, and FL.

[0121] In existing systems, the RF capacity is divided into three separate registers, such as the IF register, the OF register, and the FL register, which may have a fixed capacity, for example, 64 bytes or some other value (for example, between 4 bytes and 256 bytes). However, the fixed register capacity can lead to inefficiencies, as explained below.

[0122] Therefore, the present specification provides an improvement to an AI accelerator circuit including an RF with dynamic or elastic capacity that realizes improved efficiency. This may be achieved by dividing the RF into multiple K sub-banks or sub-registers, each of which has a capacity of B bytes, where K and B are both integers. Input and output multiplexers (such as 3-to-1 and 1-to-3 multiplexers) are used to select which kind of tensor (i.e., variable) is assigned to each sub-bank. The theoretical best embodiment may be when B=1 and K is equal to the total size of the RF. This configuration provides the ability to dynamically allocate individual bytes of the RF to different tensors at will. In real-world use cases, B=1 may not be feasible due to the number of muxes required, along with the associated costs in space and circuit power. Therefore, design tradeoffs may drive the adoption of other values ​​of B, such as, by way of illustrative and non-limiting examples, integers between 2 and 128 bytes, and in particular, any one of 2, 4, 8, 16, 32, 64, or 128 bytes.

[0123] With the RF divided into K separate sub-banks, tensor allocation can be changed at runtime. For example, the RF may have a nominal capacity of 64 bytes per tensor, 192 bytes in total (64 bytes for each of IF, OF, and FL). If this is an elastic RF with K=48 (e.g., B=4), each of the 48 separate 4-byte sub-banks may be dynamically assigned to any one of IF, OF, or FL at runtime. In a very balanced layer, each tensor may receive its nominal 64 bytes, or close to it. However, in the extreme case of stationarity in the IF, for example, only 4 bytes each may be assigned to OF and FL, leaving 184 bytes for IF. This allows large amounts of IF data to be loaded into the IF register, which saves access to higher-level memory. This allows efficient data organization in DNN inference accelerators.

[0124] Neural networks are a rapidly evolving aspect of AI. In recent years, neural networks have seen an increase in the number of proposed inference algorithms and hardware platforms that can accelerate these algorithms. The network layers for the underlying deep learning inference algorithms appear in many possible tensor shapes, whose dimensions can keep changing within a very short time span.

[0125] For example, the sequence of activation and weight data organization within a network layer, referred to as the "schedule" or "data flow," depends heavily on the layer dimension, the underlying hardware architecture, and the level of sparsity in the data. Sparsity refers to the fact that some values ​​in an array can be zero, and these zero-valued elements can be optimized away.

[0126] The schedule for the data flow can vary significantly based on the network, hardware platform, and input dataset under consideration. Given the widely varying profiles of network layer dimensions, hardware platform constraints, and sparsity content of the input dataset, it is advantageous to build flexible DNN accelerator hardware that can support efficient data organization schedules.

[0127] In some state-of-the-art flexible-schedule DNN accelerators, the hardware provides the ability to generate schedules corresponding to different DNN data flows, such as, as illustrative and non-limiting examples, weight-stationary, output-stationary, and no local reuse, which cater to different network layer dimensions. However, some of the schedules generated by the schedule generator may be suboptimal in terms of data organization, since the same schedule may be used for all layers in the neural network.

[0128] In one type of design, each type of tensor (IF, FL, and OF) resides in its own private physical register file. In many cases, sparsity and stationarity factors result in one or more of the register files being fully underutilized. This is because each individual register file has a given capacity that is statically fixed by the hardware. Many designs have been used to mitigate the utilization imbalance, such as storing all the different types of data in a single monolithic structure. However, reading and writing from this large global buffer is often power intensive and imposes limitations on the chip operating frequency.

[0129] Depending on the layer dimension, the generated optimal schedule may prioritize computation cycles or computation utilization with a corresponding negative effect on RF capacity utilization. If the RF is not 100 percent utilized, memory capacity is wasted and the amount of data reuse may be suboptimal.

[0130] The architecture herein provides an elastic register file, which is a hardware solution that allows capacity borrowing between unused capacity in the IF, FL, and / or OF register files to further reduce data movement and improve the performance of the schedule. By including a configurable register file feature, the schedule generator can exploit the feature to generate schedules with better data movement profiles by saving the number of accesses to higher-level memory hierarchies. Advantageously, the scheduler can change the distribution between different layers of the DNN. Therefore, the scheduler can optimize the design at run-time.

[0131] The Elastic Register File therefore provides a hardware technique that facilitates efficient use of available capacity that would otherwise be wasted by borrowing unused RF capacity from one RF and allocating it to another RF. Thus, while the IF, FL, and OF register files have static dedicated capacity in hardware, the present hardware technique unlocks the possibility of increasing the capacity of any of these register files through capacity borrowing from one RF with unused capacity to another RF that can use the additional capacity. This promotes a higher overall degree of data reuse among all RFs, resulting in fewer read data accesses to caches, SRAMs, or other higher level memories.

[0132] Since efficient data organization solutions promote energy efficiency in DNN accelerators, this specification provides techniques that give the scheduler the ability to handle network layers of any dimensionality with different levels of sparsity in the data.

[0133] As an example, a ResNet-50 network may have a res2_branch1 layer. The capacity of this layer may be 128 bytes. In this example, the IF dimensions are 56×56×54. The FL is 1×1×64×256. The OF is 56×56×256. The scheduler can optimize the FL data movement from SRAM / RF by 50 percent and achieve a 2x reduction in FL memory traffic. This results in significant savings in energy consumption due to the reduction in overall SRAM / RF memory traffic. Due to the increase in IF register file capacity, the system uses fewer SRAM accesses for FL.

[0134] However, statically increasing the RF storage capacity would negatively impact the area and reduce the operating frequency of the DNN accelerator. The runtime configurable register file herein utilizes capacity borrowing in the IF, FL, and OF register files to achieve reduced data movement and higher efficiency with higher operating frequencies. It can achieve these benefits without statically increasing the dedicated RF capacity in hardware.

[0135] The Elastic RF herein provides a number of advantages over existing systems. For example, the present specification allows for an increase in RF capacity between RFs with statically dedicated capacity of storage. It utilizes capacity by borrowing unused capacity within individual RFs to reduce overall data movement to improve performance. This provides an advantage over DNN accelerators in which the IF, FL, and OF register files are implemented as separate dedicated physical structures, each with a capacity that is statically fixed in hardware. Such systems do not offer the possibility to share unused capacity with other RFs.

[0136] More advantageously, the present disclosure provides a system that is schedule-aware. Elastic RF can increase the storage capacity of RFs involved in active computations through borrowing unused capacity based on DNN data flows. This is determined by the schedule and can therefore allow more data to be brought to RFs that hold stationary data. This achieves a higher degree of data reuse.

[0137] By facilitating a higher degree of data reuse, the system enables the schedule generator to select an optimal schedule in terms of data organization that helps minimize load memory traffic between the SRAM and RF storage closest to the computational resources.

[0138] Further advantageously, the system is sparsity aware: the level of sparsity in the data may alter the schedule for a given network layer, and the system can support such variations in the schedule based on the level of sparsity in the data while achieving better performance in terms of data organization compared to some existing systems that are sparsity unaware.

[0139] More advantageously, the present specification provides a system that implements the use of previously wasted RF storage capacity. The system allows for the allocation of the entire RF capacity across a wide range of network layer dimensions and levels of sparsity in the data. This helps to provide higher data reuse in the DNN accelerator. For activity stationary schedules where the IF resides in the RF for longer periods, the expanded capacity for the IF register file can be borrowed from any unused capacity in the FL or OF register file. For weight stationary schedules, the sparse capacity can be borrowed from the IF or OF. Similarly, for output stationary schedules, both IF and FL capacity can be increased simultaneously by borrowing from the OF, thereby allocating RF capacity that may have been previously wasted.

[0140] More advantageously, configuration registers within the system can be programmed via software that allows the capacity of IFs and OFs as well as FLs to be changed on a layer-by-layer basis.

[0141] Further advantageously, the present disclosure reduces SRAM / RF traffic for IF and FL data. In experimental implementations, SRAM / RF traffic was reduced by between 33.3 percent and 98.4 percent compared to fixed static registers.

[0142] The foregoing may be used to construct or implement several example implementations in accordance with the teachings herein, which are included herein as non-limiting examples of these teachings.

[0143] Systems and methods for runtime configurable register files for AI workloads will now be described with more particular reference to the accompanying figures. Note that throughout the figures, certain reference numbers may be repeated to indicate that a particular device or block is referenced multiple times across several figures. In other cases, similar elements may be given new numbers in different figures. None of these implementations are intended as requiring a particular relationship between the various embodiments disclosed. In certain instances, a genus or class of elements may be referenced by a reference number ("widget 10"), while individual species or instances of an element may be referenced by a hyphenated number ("first specific widget 10-1" and "second specific widget 10-2").

[0144] FIG. 1 is a block diagram of a hardware circuit 100 according to various embodiments. The hardware circuit 100 may be, for example, an ASIC, an FPGA, or other circuit. The hardware circuit 100 may also be implemented as an IP block or some other modular form factor that can be integrated into other designs. The hardware circuit 100 may be designed to provide an AI accelerator that performs DNN operations or other calculations for inference. The hardware circuit 100 is a logical view of a DNN accelerator architecture that includes a hierarchical memory that feeds multiple PEs, which in this example are MACs. The hardware circuit 100 may be implemented in many different configurations and form factors.

[0145] In this example, the MAC bank 108 includes multiple substantially identical (in hardware) MAC units, such as MAC 0 112-0, MAC 1 112-1, MAC 2 112-2 through MAC N 112-N. Each MAC unit may be hardware coded to perform multiply-accumulate operations. In other embodiments, the computational circuitry may be programmed to perform some other mathematical operation. Additionally, the teachings herein may be adapted to other architectures, including general CPU or GPU computing architectures that may benefit from elastic register file allocation.

[0146] In this example, RF bank 116 includes a register file, where there is a one-to-one association between the register file and the MAC units. For example, RF 0 120-0 is associated with MAC 0 112-0. RF 1 120-1 is associated with MAC 1 112-1. RF 2 120-2 is associated with MAC 2 112-2. RF N 120-N is associated with MAC N 112-N.

[0147] The hierarchical memory architecture of this example includes cache 124, SRAM 128, and DRAM 132. In various implementations, some or all of these levels of memory may be omitted, or a different memory architecture may be used.

[0148] The configuration registers 110 may be used to configure the MAC bank 108 and the RF bank 116. In some embodiments, the RF bank 116 includes registers with elastic run-time configurable memory capacity. In that case, the configuration registers 110 may be used to program the RF bank 116 for each layer. In other examples, the RF bank 116 may be programmed with the RF architecture for the entire DNN.

[0149] Internal counters and glue logic 122 may be used to program the state machine, propagate data from layer to layer in the neural network, track the position of the neural network (e.g., which layer is being operated on), and perform other logic to provide the overall structure of the larger mathematical operations performed by the discrete MAC units.

[0150] As the MAC bank 108 operates on various data, the MAC 112 may cause associated IF, FL, and / or OF tensors to be loaded into associated RF 120. These data may be loaded from cache 124, SRAM 128, DRAM 132, or others.

[0151] The input circuitry 104 may be programmed to receive inputs, such as input values ​​or input problems to be computed. Once the neural network computes an inference, the results may be sent to the output circuitry 140, which can then send the output to an external destination.

[0152] Data movement (especially between various levels of memory, such as between SRAM 128 and RF 120) can be expensive compared to computing operations. Data movement is expensive both in terms of power and in terms of time. Therefore, there has been a shift in the art of neural networks to allocate storage in the form of RF in the memory hierarchy closest to the computation. For example, because data movement is expensive, some existing architectures may have MAC 112 operating directly against cache 124, or SRAM 128 if cache 124 is not present. This provides greater flexibility and alleviates the need to move memory values ​​between different memory levels in the hierarchy. Therefore, in one example, the entire IF, FL, and OF data may be stored in a single monolithic off-chip DRAM 132 or a single monolithic on-chip SRAM 128.

[0153] The capacity of DRAM 132 and SRAM 128 is shared among the IF, FL, and OF data within RF 120 closest to computing MAC 112, while existing methods may statically allocate the IF, FL, and OF data with a fixed allocation at design time.

[0154] In some existing architectures, the physical implementation of the accelerator architecture has RF storage implemented as a separate physical structure with dedicated storage capacity allocated to each one of the IF, FL, and OF data. This may be as opposed to a monolithic structure that stores all of the IF, FL, and OF data together, such as in DRAM 132 or SRAM 128. In some cases, even the storage buffers that hold the IF, FL, and OF data are implemented as separate physical structures of fixed capacity.

[0155] Within existing structures, some benefits have been realized by moving from a monolithic RF structure to a dedicated RF structure for each of the IF, FL, and OF data. The expensive nature of adding multiple read and write ports to a monolithic RF is one factor driving the adoption of a static dedicated register file for each tensor. For example, this would require at least three read ports and three write ports for the monolithic RF if the system needed to access the IF, FL, and OF data simultaneously. In terms of area, clock cycles, and read energy, this has proven to be prohibitively expensive in some instances. Moreover, read and write RFs with high port counts need to be custom-made or are not readily available, and the RF with the largest port count available from a standard RF compiler is a 2R2W RF.

[0156] Existing DNN accelerator architectures may support fixed schedules. The RF storage capacity and the capacity of the mid-level storage buffers to store IF, OF, and FL data may be statically fixed and cannot be changed during execution or at run time. The use of a fixed schedule eliminates any need to modify the storage capacity at run time.

[0157] However, fixed hardware and fixed schedule DNN accelerators can be suboptimal in terms of handling network layers of arbitrary dimensions measured via data movement from SRAM / RF. For example, Table 1 below shows the loss of optimality for different schedule stationarities. [Table 1] Table 1. Iso-RF DNN Accelerator Architecture

[0158] Table 1 shows the total number of SRAM accesses as a function of the fixed hardware of a DNN accelerator and the fixed-schedule dataflow it supports. The main diagonal of the table (where the hardware architecture and the schedule dataflow match) is the most optimal, while the off-diagonal elements are suboptimal. This highlights the need to design flexible-schedule DNN dataflow accelerators that include flexible underlying hardware that can be exploited by the schedule generator to generate more optimal or near-optimal schedules.

[0159] Some existing systems have addressed the aspect of designing flexible DNN accelerators. However, they focus on designing flexible data distribution models to enable flexible scheduling. For example, some systems may provide flexible PE computation kernels to support variable-shape tensor data processing in DNN accelerators. However, these systems do not utilize the unused capacity in the static dedicated register file storage for IF, OF, and FL data.

[0160] Furthermore, these systems may not be sparsity aware and therefore suboptimal in dealing with sparse data. The level of sparsity in the data may alter the schedule for a given network layer. For example, Table 2 shows the impact of sparse data on an example network, "Mobilenet_v2_deploy." [Table 2] Table 2. Impact of sparse data

[0161] As shown in Table 2, the dense schedule for the IF, FL, and OF register files is nearly fully utilized, while for the sparse data schedule, the register files are underutilized. A fixed dedicated capacity RF implementation may not be able to utilize the unused capacity to bring in additional data from outer rounds to improve the reuse factor.

[0162] However, if the hardware circuit 100 is instead provided with an elastic register file, capacity can be shared among various input and output tensors to account for sparsity, different tensor dimensions, and different stationarity of the data, as described herein.

[0163] 2 is a block diagram of a subcircuit 200. Subcircuit 200 is a logical diagram of a selected aspect of a MAC unit, such as MAC 112, selected from MAC bank 108 of FIG.

[0164] In this example, register file 202 is divided into IF map 204, FL (filter weights) 208, and OF map 212. IF map 204 provides input tensors to MAC unit 216. Specifically, multiplier 220 receives input feature tensors from IF map 204. Multiplier 220 also receives scalar weights (which are a special zero-dimensional case of tensors) as filters 208. Multiplier 220 computes the product of the IF map and the filter weights.

[0165] Adder 224 calculates the sum, i.e., the sum of the OF tensor 212, along with the products of the input feature tensors and the scalar weights. This sum is then returned and stored in OF map 212.

[0166] An AI accelerator, such as the hardware circuit 100 of FIG. 1, can realize substantial speed advantages by providing a bank of MAC units, such as the one shown here. In this example, the register file 202 is shown as a conceptual register file. In a more general sense, the register file 202 simply represents a data source that can be used by the MAC units 216. This can be implemented as physical registers of fixed or flexible capacity or a monolithic data structure, such as SRAM or DRAM.

[0167] As noted above, the MAC unit 216 may achieve efficiency benefits by having a register file 202 with flexible register capacity, where unused capacity in a particular portion of the register file may be shared with other portions of the register file.

[0168] The embodiments herein include hardware that changes the capacity of the IF Map 204, OF Map 212, and / or Filter 208 via an elastic register file. This allows for borrowing of unused capacity between RFs at one or more levels of the memory hierarchy closest to compute. Note that this technique can also be adapted to software methods, including software methods for problems other than the AI ​​or DNN methods disclosed herein. In general, any hardware or software method that can benefit from a flexible register file where portions of registers can be lent or borrowed can benefit from the teachings herein. Any such structure is intended to be included within the scope of the present specification. In some embodiments, the elastic registers are distributed among a set of fixed values, such as the three tensors (IF, OF, FL) shown by example herein, or other tensors or inputs and outputs. In other embodiments, the elastic registers may be tailored for general purpose data and use by the methods.

[0169] Note that there are existing software programmable registers that are used to configure the DNN accelerator for neural network layers. The configuration registers may be a superset of such registers.

[0170] This achieves advantages relative to existing systems where the amount of storage for IF, OF, and FL is initially fixed. The elastic register file can modulate the amount of RF storage allocated to IF, OF, and FL data. DNN accelerators that support activation-constant, weight-constant, and output-constant schedules can benefit significantly from this elastic register file approach.

[0171] A preference can be assigned to the desired tensor. For example, a preference or additional weight can be assigned to IF vs. OF vs. FL in terms of storage capacity. Data flows that are stationary, or in other words data that resides in the RF for a longer duration, can be assigned higher capacity, while other faster changing data flows can be assigned lower capacity. For an activity stationary schedule, the Elastic RF system borrows any unused capacity in the FL and OF register files and allocates higher capacity to IF data. For a weight stationary schedule, FL data is allocated higher capacity storage via capacity borrowing from the IF and OF register files. In the case of an output stationary schedule where both activation and weight have the same preference, the Elastic RF technique can allocate equal weight storage capacity to both IF and FL data by borrowing any unused capacity from the OF register file.

[0172] Elastic-RF therefore achieves efficient data movement by facilitating a high degree of data reuse across a wide sample of schedules (e.g., activations, weights, and output stationarity). Furthermore, because schedules for network layers depend on the level of sparsity in the data, Elastic-RF techniques can improve data organization efficiency even in the presence of sparsity in the weight and activation data.

[0173] The architecture presented herein addresses the trend of deploying more and more DNN accelerators on energy-constrained devices. The DNN accelerators may perform inference on the mobile computing edge for various AI applications, including imaging, video, and voice applications, as illustrative and non-limiting examples. An efficient power management scheme may be important in edge devices that are battery-operated. Recent trends show that data movement may replace the cost of computing itself as a control factor in such devices. Therefore, enabling efficient data organization techniques through advanced data reuse can significantly improve the energy and power efficiency of current state-of-the-art DNN accelerators.

[0174] The embodiment of the Elastic RF scheme shown herein may depend on the type of data flow of the DNN schedule generated by the schedule generator. This may be in the form of a software compiler and may be programmed into the DNN accelerator via a configuration register. In one embodiment, an identifier in the form of a flag or knob that enables the Elastic RF feature in the schedule generator is introduced. For different types of network layer DNN data flows, the software may program specific register fields to specify the amount of used and unused storage capacity of the IF, OF, and FL register files. In some cases, additional pins may be provided to connect to host CPU control / status registers.

[0175] Figure 3A is a block diagram of selected elements of a static register file ecosystem 300. This can be compared to Figure 3B, which is a block diagram of selected elements of an elastic register file ecosystem.

[0176] 3A, the ecosystem 300 includes a schedule generator 304. The schedule generator 304 accepts hardware inputs 308, which represent statically allocated dedicated register file capacity. The schedule generator 304 also receives network inputs 312, which are used to provide schedules, such as Schedule A 316. The network inputs 312 are inputs to the DNN, and may include, as illustrative and non-limiting examples, width (W), height (H), input channels (C), output channels (K), filter width (F), and the like. w ), filter height (F h ), and layer dimensions in the form of stride (S).

[0177] From the hardware input 308, the schedule generator 304 knows the static dedicated IF, FL, and OF register file capacities for the accelerator. Based on this, the schedule generator 304 creates a schedule A 316, which is a schedule that is applied to the entire network. In other words, the schedule A 316 is applied to every layer of the network and cannot be changed at run-time.

[0178] In FIG. 3B, an elastic register file ecosystem 302 is disclosed. It includes an alternative schedule generator 320. The schedule generator 320 is configured to provide elastic RF features to a neural network. The network inputs 328 may be the same or substantially the same as the network inputs 312 of FIG. 3A. As previously mentioned, the schedule generator 320 is configured to provide elastic RF features to a neural network. w , F h, and S. However, the hardware inputs 324 are different from the hardware inputs 308 of FIG. 3A. In this case, the schedule generator 320 is aware of the elastic RF features available in the hardware. This includes the ability to borrow unused RF capacity in an IF, FL, or OF register file and allocate the borrowed capacity to any of the other IF, FL, or OF register files to increase their capacity. The elastic RF features give the schedule generator 320 the ability to generate schedules that are data-flow aware and sparsity aware, and RF capacity is allocated to the RF holding stationary data by borrowing excess RF capacity that was previously unused by other registers. For example, if the IF is stationary and the FL and OF are underutilized, capacity can be borrowed from the FL and / or OF and allocated to the IF to better use the stationary data. Then, more stationary data can be loaded into the IF, and the operation becomes more efficient because less data movement is required.

[0179] Therefore, schedule generator 320 may generate schedule B 332 and schedule C 336 along with any other schedules that may be needed. Schedule generator 320 may assign a different schedule to each layer in the neural network depending on the stationarity and / or sparsity of the data in that layer. In an illustrative example, schedule generator 320 may generate as many schedules as there are layers in the neural network. This provides better data movement performance in terms of SRAM data access compared to schedule A 316 due to the higher degree of data reuse allowed by the elastic register file.

[0180] FIG. 4 is a block diagram of two register files illustrating the differences between a fixed capacity register file and a dynamic register file.

[0181] The fixed capacity register file 404 includes an input activation register 408, a weight register 412, and an output activation register 416. In the case of a fixed capacity register file 404, the input activation register 408 has a fixed capacity C IF The weight register 412 has a fixed capacity C FL The output activation register 416 has a fixed capacitance C OF The total byte capacity of the register file is C TOT =C IF +C FL +C OF It is.

[0182] In a typical use case, registers 408, 412, and 416 are stored hierarchically closest to the computational units (e.g., MACs, etc.). Their storage capacity is static and dedicated. Regardless of the network layer dimensions and data flow of the schedule, the amount of storage allocated to IF, OF, and FL is statically allocated and remains fixed. In cases such as FPGAs, they may be dynamically allocated during burn-in of the FPGA kernel, but once the FPGA is programmed, the register file size remains fixed for the entire neural network operation.

[0183] The dynamic register file 408 illustrates the concept of elastic registers. In the case of the dynamic register file 408, the total capacity remains the same. In other words, the C TOT C for Dynamic Register File 408 TOT However, the register allocation may be different. Each register is a C IF , OF or output activation tensor C OF , and C for the weight or filter tensor FLThe variables α, β, and γ may represent the actual amount in use for a particular layer, and are decimal values ​​between 0 and 1.0 (e.g., 0=completely unused, 1=completely used). Thus, (1-α) may represent the capacity available to be "loaned" to other tensors. For example, if an IF uses 25% of its nominal capacity (α=0.25), then 75% ((1-α)=0.75) may be available to be loaned to either an OF or a FL. Thus, register 420 stores α*C IF byte, and register 424 stores β*C FL byte, and register 428 stores γ*C OF The capacity available to be borrowed by another register (usually a register that is already fully utilized, i.e., one or more of α, β, or γ are 1.0) is (1-α)*C IF +(1-β)*C FL +(1-γ)*C OF This "sparse" capacity can be distributed as needed among the IF, FL, and OF registers, with the granularity determined by the size of each sub-bank.

[0184] If each register has a nominal capacity of 64 bytes, then C TOT is 192 bytes. As will be shown below, there is a tradeoff between the granularity for dividing the register file and the size and power consumption of the circuitry. For example, each byte could be a unit, in which case C IF The minimum value of is 1 byte, and the programmer has essentially unconstrained access to reprogram the register file byte sharing for each layer. However, 1 byte granularity may result in prohibitive size and power consumption for some use cases. Therefore, a different granularity may be used, such as 2 bytes, 4 bytes, 8 bytes, 16 bytes, 32 bytes, 64 bytes, or some other scale.

[0185] Using 4 bytes as an example use case, each register file 420, 424, 428 has a minimum capacity of 4 bytes. IF must be at least 4 bytes for the input activation register 420. FL must be at least 4 bytes for the weight register 424. OF must be at least 4 bytes for the output activation register 428. The remaining sub-registers (e.g., blocks of 4 bytes) can be allocated as needed in 4-byte chunks. These can be borrowed or lent to other register files to account for each layer's data path, stationarity, and sparsity. Thus, if 4 bytes are reserved for the IF, for example, the remainder of the register file can be allocated to other register files as needed for the layers.

[0186] Since the granularity is 4 bytes in this illustrative example, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, or 60 bytes can be lent to other register files for their calculations. On the other hand, if an IF has high stationarity for this tier and could benefit from more than 64 bytes, it may borrow additional bytes from other register files, again in 4-byte increments.

[0187] In some embodiments, different register files may have different granularity and therefore different allocation sizes, however, as shown below, certain hardware advantages may be realized by using common hardware such that the register file blocks essentially have arrays of identical byte groups (i.e., sub-registers) that can be allocated according to the needs of the three different variables and their tensors.

[0188] The Elastic RF storage scheme provides two partial capacities for each of the IF, OF, and FL register files. There is a used capacity portion, and an unused capacity portion that is available to be borrowed by other register files. The used capacity fractions of the IF, FL, and OF may be denoted by α, β, and γ, respectively. Therefore, the total unused storage capacity of the IF, FL, and OF register files can be denoted as: [1-α]*C IF +[1-β]*C FL +[1-γ]*C OF

[0189] The unused portion is available to be borrowed, either in part or in whole, by any of the other register files. Tables 3 and 4 below show the borrowing. In this case, a 192-byte RF is assumed, with each tensor having a nominal size of 64 bytes. [Table 3] Table 3. Data distribution for example data flow (Formulaic) [Table 4] Table 4. Data Allocation for Example Data Flow (Byte Allocation)

[0190] In this example, each register file has 64 bytes, with α=1.0, β=0.5, and γ=0.5, which results in 32 bytes of unused capacity from both the FL and OF register files being borrowed by the IF register file to increase the capacity of the IF register file from 64 bytes to 128 bytes.

[0191] Table 3 shows the relative allocation of IF, OF, and FL register file storage capacity for various types of scheduled data flows. For an output stationary family of schedules where activations and weights reside in the RF for equal durations, the unused storage capacity may be allocated equally to activations and weights. The unused capacity of the RF volume is [1-α]*C IF +[1-β]*C FL +[1-γ]*C OF is distributed equally across activations and weights. When the schedule is activation-stationary, the Elastic RF system assigns preference to activation storage capacity, with the entirety of the unused RF capacity being borrowed by the IF register file. On the other hand, for weight-stationary schedules, the Elastic RF scheme gives preference to weights and allocates the integrity of the unused RF capacity to the FL register file.

[0192] In the above example, a 64-byte register file for each register is used as an example. For α=0.5, β=0.5, γ=0.5, Table 3 shows the IF, FL, and OF register capacity storage for output, activation, and weight stationary schedules. It should be understood that the numbers shown above are concrete examples, and the concept of elastic RF is fully extensible to cover any value of C, α, β, and γ. In particular, while an elastic register file scheme is shown herein as a feature of an AI system, this scheme can be extended to any hardware architecture that would benefit from an elastic register file scheme.

[0193] 5 is a block diagram illustrating selected aspects of an elastic register file hardware scheme. In this case, a configuration register or registers 502 controls a register sub-bank or group of register sub-banks 504. For example, register sub-banks 504-0, 504-1 through 504-N are shown herein. Again, as a specific example, each register sub-bank 504 may provide 4 bytes of available storage. As illustrative and non-limiting examples, register sub-banks of other sizes may be provided, such as 1, 2, 4, 8, 16, 32, 64, or 128 bytes.

[0194] The register sub-banks 504 can be split between IF, FL, and OF (or other tensors or general data) as needed to realize the benefits of this specification. Each register bank 504 includes a register file 516 with a specified number of bytes available for that register file, for example, 4 bytes in this case. In a static register file with C=64, 16 fixed register banks 504 would be wired to IF, another 16 would be wired to FL, and another 16 would be wired to OF. However, in this case, flexible register file allocation is provided. Connected to each register file 516 is an input mux 508 and an output mux 512. The input mux 508 receives signals from each of the IF, FL, and OF. Similarly, the output mux 512 is wired to provide its signals to each of the IF, FL, and OF. In this example, both input mux 508 and output mux 512 receive a common select input from configuration register 502, which may provide the encoding to select the correct tensor for the register file. Thus, if input mux 508 is programmed to receive an IF, output mux 512 is also programmed to deliver the IF.

[0195] In the case of a DNN, at least one register file 516 is allocated to each tensor. In some embodiments, the register file or files that provide the smallest capacity may be wired to each one of IF, OF, and FL. This may save the space and power cost of three redundant multiplexers, knowing that at least one register file 516 will always be allocated to each tensor.

[0196] Other register files can be dynamically allocated at runtime on a per-layer basis according to stationarity, sparsity, and data demands of a particular layer. Note that a group of register banks 504 together form a register set for a particular computational unit, such as a single MAC. In other words, register sub-banks 504-0 through 504-N may form an elastic "register file" for a single MAC.

[0197] From a practical standpoint, it is efficient to divide the individual RF capacity into K banks, each of capacity C / K. K is an indicator of the discrete quantum of RF storage capacity increment that is loanable to one of the other register files depending on the scheduled data flow. The smaller the value of K, the lower the hardware overhead associated with the elastic RF scheme. Fewer banks means fewer encoders and decoders are required as hardware overhead for the register file read and write paths. However, this also results in a greater granularity of control over the loanable RF capacity allocation. In this example, the step size of the loanable RF capacity increment is large due to the small value of K.

[0198] On the other hand, having a larger value of K implies the ability to divide the individual capacities C into much finer granularity sub-banks, which allows for greater control over the total rentable RF capacity allocation. The programmer can then select individual banks of storage capacity of much finer granularity. However, this comes at the expense of higher hardware area overhead, as a larger number of banks requires more encoder and decoder area for the RF read and write paths.

[0199] The configuration register 502 may be programmed via software depending on the scheduled data flow for the selected DNN data flow. It may also depend on the total number of bits in the elastic RF register, which may be expressed as 2*(3*K), which includes K banks for each of IF, OF, and FL, where each bank of bits indicates the polarity of the data in the respective RF bank.

[0200] The configuration register 502 may provide encoded bit values ​​to select the appropriate input / output pairing for each sub-bank 504. In the example DNN case, there are three possible selections (e.g., IF, OF, and FL). In one example, a bit pair value of "00" indicates that the bank is used to store output activation data (OF). A bit pair value of "01" indicates input activation data (IF). A bit pair value of "10" indicates weight / filter data (FL). Other bit encodings may be used. An appropriate multiplexer may be inserted on the RF bank write and read paths, and the selection signal for the corresponding bit pair value for that RF bank may be used from the configuration register 502.

[0201] FIG. 6 is a graph 600 showing the relative hardware cost of different configurations for different values ​​of K. A value of K=1 corresponds to a baseline implementation (e.g., static register file) as found in some existing systems. Increasing values ​​of K correspond to the number of banks in each of the IF, FL, and OF register files. This indicates the granularity of the partitioning and the granularity of the loanable sub-banks. As the number of banks K increases, there is a roughly linear increase in the relative hardware cost and the number of 3-to-1 multiplexers. Increasing the number of banks increases the number of 3-to-1 multiplexers added to the data path, which ultimately limits the scalability of the design. Therefore, while it is theoretically desirable to have a large value of K to maximize the loanable RF storage capacity allocation, practical considerations dictate that the relative hardware cost incurred in implementing the Elastic RF scheme should also be taken into account. Higher values ​​of K result in higher surface area usage and higher power consumption. K can be treated as a design-time choice that can be used by software to determine how to utilize the unused capacity, given the ability to partition into K banks. The value of K may be selected by a system designer according to the design considerations of the system. Realizing efficiency gains

[0202] FIG. 7 is a graph 700 illustrating the percentage reduction in total SRAM load accesses from using an example elastic register file. [Table 5] Table 5. FL SRAM access reduction

[0203] Table 5 shows the percentage reduction in the total number of SRAM load accesses (sum of active and weighted SRAM load accesses) using Elastic RF. The first column shows the schedule data flow type and the values ​​of C and K. The columns "inner", "outer" and "#entryIF / FL / OF" with the qualifiers "baseline" and "elastic RF" refer to the schedules generated by the compiler for hardware without and with Elastic RF techniques, respectively. For simplicity in the description, the first term is the output dimension variable, the second term is the blocking factor, and the third term is the partitioning factor. For example, OX / 1 / 8 in inner and OX / 8 / 1 in outer indicate that each PE (e.g., MAC) has 1X point, and there are 8 such identical PEs operating on 8 independent Xs spread across multiple PEs in space, while there are 7 such outer rounds operating in 7 loops spread in time. The #entryIF / FL / OF indicates the number of IF, FL, and OF entries in the RF.

[0204] Some experimental results are presented. Case A: Activation stationary schedule (rows 1 and 2 in Table 5)

[0205] In the baseline scheme where the capacity of the IF, FL, and OF register files is fixed at C=64B, the FL and OF RFs suffer from under-allocated capacity, while the IF RF cannot be expanded to accommodate additional IF points. This is mitigated in the Elastic RF scheme where the IF RF capacity is increased to accommodate 128B via capacity borrowing, while the FL RF stores 32B. Due to the increase in OY points in the inner loop from OY / 2 / 14 (total of 28 OY points) in the baseline schedule to OY / 4 / 14 (total of 56 OY points) in the scheduling supported by Elastic RF, there is a subsequent reduction in the OY outer loop from OY / 2 / 1 to OY / 1 / 1. Having a larger number of activation points in the inner loop (1*2*32=64 baseline vs. 1*4*32=128 Elastic RF) enhances the effectiveness of the activation constant schedule by improving the degree of activation reuse. This in turn reduces the weight load memory traffic from SRAM by 50% since the weights have to be brought to the PEs less times. Due to the reduction in weight data movement from SRAM to the compute units, the power / energy efficiency of the flexible DNN accelerator is significantly improved. A similar analysis is shown for the K=8 case. For this activation stationary schedule, there is no further memory traffic reduction by increasing the number of banks from K=2 to K=8. Case B: Weight Stationary Schedule (Rows 3 and 4 in Table 5)

[0206] Similar analysis is shown for two varieties of K (K=2 and K=8) for weight stationary schedule. For K=2 (Weight_1), the capacity of each RF bank is 64B / 2=32B, while for K=8, the capacity of each RF bank is equal to 64 / 8=8B. For smaller values ​​of K=2, the capacity of individual RF banks is large, so the system cannot achieve finer granularity of control over total RF capacity management. (Baseline: IF=8B, Weight=64B is updated to Elastic RF: IF=8B, Weight 96B, with 128-(96+8)=24B unused between IF and FL RF). The quantum of RF capacity increment occurs in multiples of 32B, which is the individual RF bank size for K=2. On the other hand, for K=8 (Weight_2), the size of the individual RF bank is 8B, which allows the weight RF capacity to be increased to 120B, such that the entire 128B RF capacity is shared between IF and weight. Having a larger number of weight points in the inner loop (96B for K=2 vs. 120B for K=8) improves the efficiency of the weight-constant schedule (baseline outer loop OC / 4 / 1 is reduced to elastic RF outer loop OC / (8 / 3) / 1 and OC / (15 / 32) / 1 for K=2 and K=8 cases, respectively) with more weight data reuse within the PE resulting in a reduction in IF SRAM load accesses by 33.3% and 46.7% for K=2 and K=8, respectively.

[0207] The downside of increasing the value of K is to have a smaller size RF bank, which increases the area overhead associated with the encoders and decoders on the RF write and read paths (Weight_2, which incurs a larger hardware overhead compared to the Weight_1 schedule). The additional timing overhead incurred due to the multiplexers in the RF read and write paths was impractical in the baseline implementation. However, if the RF reads and writes are not in the critical path and the critical path is in the DNN accelerator multiply-accumulate datapath unit, there is zero timing overhead. In the worst case scenario, if the RF reads and writes are in the critical path, there is minimal degradation in the maximum achievable frequency of operations of the DNN accelerator. Case C: Output Stationary Schedule (Rows 5 and 6 in Table 5)

[0208] Finally, for the output stationary schedule, IFs and FLs are treated the same and are allocated equal RF storage capacity borrowed from unused capacity. For the K=4 case (Output_1) and for the K=8 case (Output_2), there is a significant savings (98.4%) in IF SRAM load accesses, which is achieved due to the entire IF moving to the inner loop, made possible by Elastic RF. The system is able to allocate additional storage capacity in finer granularity chunks, which was not possible to achieve for the K<4 case. For K<4, Elastic RF does not realize any gain from SRAM load access reduction over the baseline implementation due to the large granularity of the bank size, which does not allow for additional IF and FL inner loop storage capacity allocation.

[0209] FIG. 7 shows a graph 700 of the Elastic RF scheme applied to several realistic layer dimensions from ResNet-50 and Inception networks, along with the reduction in activation and weight SRAM accesses.

[0210] With changes in the level of sparsity in the data, the schedule for a layer changes, and thus sparsity awareness can be reflected as schedule awareness that Elastic RF is capable of.

[0211] In summary, Elastic RF can benefit network layers with a wide range of widths (OX), heights (OY), input channels (IC), output channels (OC), filter widths (FX), filter heights (FY) and strides (S) as well as varying degrees of sparsity in the data. Elastic RF can ensure higher storage capacity allocation among IF, FL, and OF RFs through borrowing of unused RF capacity to achieve a higher degree of reuse in either IF, FL, or OF data.

[0212] FIG. 8 is a block diagram illustrating selected elements of an example SoC 800. At least some of the teachings herein may be embodied on or paired with the SoC 800. The SoC 800 may include or be paired with an advanced reduced instruction set computer machine (ARM) component. For example, the SoC 800 may include or be paired with any ARM core, such as the A-9, A-15, etc. This architecture represents a hardware platform that may be useful in devices such as tablets and smartphones, including, as illustrative examples, Android® phones or tablets, iPhone® (any version), iPad®, Google Nexus, Microsoft Surface. The SoC 800 may also be integrated into, for example, a PC, a server, a video processing component, a laptop computer, a notebook computer, a netbook, or a touch-enabled device.

[0213] Similar to hardware platform QB00 above, SoC 800 may include multiple cores 802-1 and 802-2. In this illustrative example, SoC 800 also includes an L2 cache control 804, a GPU 806, a video codec 808, a liquid crystal display (LCD) I / F 810, and an interconnect 812. L2 cache control 804 may include a bus interface unit 814, an L2 cache 816. Liquid crystal display (LCD) I / F 810 may be associated with a Mobile Industry Processor Interface (MIPI) / HDMI link that couples to the LCD.

[0214] The SoC 800 may include a subscriber identity module (SIM) I / F 818, a boot ROM 820, a synchronous dynamic random access memory (SDRAM) controller 822, a flash controller 824, a serial peripheral interface (SPI) director 828, suitable power control 830, dynamic RAM (DRAM) 832, and flash 834. In addition, one or more embodiments include one or more communication functions, interfaces, and features, such as instances of Bluetooth, 3G modem, Global Positioning System (GPS), and 802.11 Wi-Fi.

[0215] Designers of integrated circuits such as the SoC800 (or other integrated circuits) may use intellectual property blocks (IP blocks) to simplify system design. IP blocks are modular, independent hardware blocks that can be easily integrated into a design. Because IP blocks are modular and independent, an integrated circuit (IC) designer need only "drop in" the IP block to use its functionality. The system designer can then make the appropriate connections to the inputs and outputs.

[0216] IP blocks are often "black boxes" - in other words, the system integrator using the IP block may not know, and does not need to know, the details of the IP block's particular specifications. In fact, the IP block may be provided as a proprietary third-party unit, without any insight into the IP block's design by the system integrator.

[0217] For example, a system integrator designing an SoC for a smartphone may use, in addition to a processor core, IP blocks such as a memory controller, a non-volatile memory (NVM) controller, Wi-Fi, Bluetooth, GPS, fourth or fifth generation networks (4G or 5G), audio processors, video processors, image processors, graphics engines, GPU engines, security controllers, and many other IP blocks. In many cases, each of these IP blocks has its own embedded microcontroller.

[0218] In an illustrative example, the SoC 800 also includes an AI accelerator circuit 825. The AI ​​accelerator circuit 825 may be closely coupled to the SoC 800. The programming module 827 may include logic, software, or firmware necessary to program the AI ​​accelerator circuit 825. An example of such a configuration is shown in FIG. 13 below.

[0219] 9-11 show selected elements of an AI system or architecture. In these figures, a basic neural network is used as a representative embodiment of an AI or machine learning architecture or engine. This should be understood as a non-limiting example and other machine learning or AI architectures can be used including, for example, symbolic learning, robotics, computer vision, pattern recognition, statistical learning, speech recognition, natural language processing, deep learning, convolutional neural networks, recurrent neural networks, object recognition, etc.

[0220] FIG. 9 illustrates machine learning according to a "textbook" problem with a real-world application. In this case, the neural network 900 is tasked with recognizing characters. For simplicity of explanation, the neural network 900 is tasked only with recognizing a single digit ranging from 0 to 9. These are provided as input images 904. In this example, the input image 904 is an 8-bit grayscale image of 28×28 pixels. In other words, the input image 904 is a square that is 28 pixels wide and 28 pixels high. Each pixel has a value between 0 and 255, with 0 representing white or no color, 255 representing black or full color, and values ​​in between representing various shades of gray. This provides a clear problem space to illustrate the working principles of neural networks. Only selected elements of the neural network 900 are shown in this figure, and its real-world application may be more complex and may include additional features such as the use of multiple channels (e.g., for a color image, there may be three separate channels for red, green, and blue). Additional layers of complexity or functions may be provided in the neural network, or other AI architecture, to meet the needs of a particular problem. In fact, the architecture herein is sometimes referred to as the "Hello World" problem of machine learning, and is provided merely as one example of how the machine learning or AI functions herein may be implemented.

[0221] In this case, neural network 900 includes an input layer 912 and an output layer 920. In principle, the input layer 912 receives an input, such as an input image 904, and in the output layer 920, the neural network 900 "fires" a perceptron, which indicates which character the neural network 900 believes is represented by the input image 904.

[0222] Between the input layer 912 and the output layer 920, there are some number of hidden layers 916. The number of hidden layers 916 depends on the problem to be solved, the available computational resources, and other design factors. In general, the more hidden layers 916 and the more neurons per hidden layer, the more accurate the neural network 900 may be. However, adding hidden layers and neurons also increases the complexity of the neural network and its demands on computational resources. Therefore, some design skill is required to determine the appropriate number of hidden layers 916 and the number of neurons to be represented in each hidden layer 916.

[0223] The input layer 912, in this example, includes 784 "neurons" 908. Each neuron in the input layer 912 receives information from a single pixel of the input image 904. Because the input image 904 is a 28x28 grayscale image, it has 784 pixels. Therefore, each neuron in the input layer 912 holds 8 bits of information captured from one pixel of the input layer 904. This 8-bit value is the "activation" value for that neuron.

[0224] Each neuron in the input layer 912 has a connection to each neuron in the first hidden layer in the network. In this example, the first hidden layer has neurons labeled 0 to M. Each of the M+1 neurons is connected to all 784 neurons in the input layer 912. Each neuron in the hidden layer 916 includes a kernel or transfer function, which is described in more detail below. The kernel or transfer function determines how large a "weight" should be assigned to each connection from the input layer 912. In other words, the neurons in the hidden layer 916 may consider some pixels to be more important to their function than others. Based on this transfer function, each neuron independently calculates an activation value, which may be, for example, a decimal number between 0 and 1.

[0225] Each neuron in this layer is also connected to each neuron in the next layer, which has neurons from 0 to N. As in the previous layer, each neuron has a transfer function that assigns a particular weight to each of the M+1 connections and calculates its own activation value. In this way, the values ​​are propagated along the hidden layer 916 until they reach the final layer, which has P+1 neurons labeled 0 to P. Each of these P+1 neurons has a connection to each neuron in the output layer 920. The output layer 920 contains neurons known as perceptrons that calculate activation values ​​based on their weighted connections to each neuron in the final hidden layer 916. The final activation values ​​calculated in the output layer 920 can be thought of as the "probability" that the input image 904 is the value represented by the perceptron. For example, if the neural network 900 works perfectly, perceptron 4 will have a value of 1.00, while each other perceptron will have a value of 0.00. This represents a theoretically perfect detection. In practice, detection is generally not expected to be perfect, and it is desirable for perceptron 4 to have values ​​closer to 1, while the other perceptrons have values ​​closer to 0.

[0226] Conceptually, neurons in the hidden layer 916 may correspond to "features." For example, in the case of computer vision, the task of recognizing characters may be divided into recognizing features such as loops, lines, curves, or other features that make up the character. Recognizing each loop, line, curve, etc. may be further divided into recognizing smaller elements (e.g., line or curve segments) that make up the feature. By moving through the hidden layers from left to right, it is often expected and desired that each layer will recognize the "building blocks" that make up the features for the next layer. In practice, achieving this effect is a non-trivial problem and may require more sophistication in programming and training than is fairly represented in this simplified example.

[0227] The activation values ​​for neurons in the input layer are values ​​obtained from the corresponding pixels in the bitmap. The activation value (a) for each neuron in the subsequent layer is calculated according to a transfer function, which takes into account the "strength" of each of its connections to each neuron in the previous layer. The transfer can be described as the sum of the weighted inputs (i.e., the activation values ​​(a) received from each neuron in the previous layer multiplied by weights representing the strengths of the neuron-to-neuron connections (w)), plus a bias value.

[0228] A common operation for the kernel is convolution, in which case the neural network may be referred to as a "convolutional neural network" (CNN). In the case of a network with multiple hidden layers between the input and output layers, it may be referred to as a deep neural network. In current practice, convolutional DNNs (also known as CNNs) are the most commonly used type of AI circuit or program.

[0229] In the case of CNNs, the convolution can be performed in software (such as on a general-purpose computer or on GPU-based hardware) or in specialized hardware. For example, a multiply-accumulate unit (MAC unit) of the form

number

number

number

number

[0230] The basic data structure of CNN is the tensor. A tensor is an n-dimensional structure of values, where n indices are required to address a particular value. Scalars, vectors, and matrices are special cases of tensors. A scalar is a zero-dimensional tensor, or a single value. A vector is a one-dimensional tensor, which can be addressed via a single index (e.g.,

number

number

number

number

[0256]

[0256]

[64]

[12] ;

[0231] Fundamental properties of tensors include rank, axes, and shape. Tensor rank refers to the number of dimensions of a tensor. For example, a two-dimensional tensor (known as a matrix) has rank 2. An axis is a separate dimension. For example, a rank-2 tensor has axis 0 and axis 1. In common usage, these may also be referred to as the "x" and "y" axes. Three-dimensional axes have the "x", "y", and "z" axes. Higher rank tensors generally do not have common names for their axes, and these axes may be referred to by their order.

[0232] The shape of a tensor is a measure of the length of each axis. For example, a rank-3 tensor with 256 elements on axis 0, 256 elements on axis 1, and 64 elements on axis 2 has the shape

number

number

number

number

[0233] When computing the convolution, the weights may be used, for example, to "select" a region of interest in the pixmap that corresponds to the "feature" that the neuron represents. Positive weights may be used to select this region, with a higher positive magnitude representing a higher probability that the pixels in that region (if activation values ​​come from the input layer) or sub-feature (if activation values ​​come from the hidden layer) correspond to the feature. Negative weights may be used, for example, to actively "select out" surrounding regions or sub-features (e.g., to mask out brighter values ​​on the edges), which may be used, for example, to remove noise on the edges of the feature. Pixels or sub-features that are isolated from the feature may have, for example, a weight of zero, meaning that they should not contribute to the examination of the feature.

[0234] The bias (b) may be used to set a threshold for detecting the feature: for example, a large negative bias indicates that the feature should be detected only if it is strongly sensitive, while a large positive bias makes the feature much easier to detect.

[0235] The biased weighted summation results in a number with any sign and magnitude. This real number can then be normalized to a final value between 0 and 1, which (conceptually) represents the probability that the feature this neuron represents was detected from the input received from the previous layer. The normalization may include functions such as step functions, sigmoids, piecewise linear functions, Gaussians, linear functions or regressions, or the popular "normalized linear units" (ReLU) function. In the examples herein, the sigmoid function notation (σ) is used as an illustrative example, but should be understood to represent any normalization function or algorithm used to calculate the final activation values ​​in a neural network.

[0236] The transfer function for each neuron in a layer results in a scalar value. For example, the activation value for neuron "0" in layer "1" (the first hidden layer) can be written as:

number

[0237] In this case, it is assumed that layer 0 (input layer 912) has 784 neurons, where the previous layer has "n" neurons, and the function can be generalized as follows:

number

[0238] A similar function is used to calculate the activation value of each neuron in layer 1 (first hidden layer), weighted by the strength of that neuron's connections to each neuron in layer 0 and biased by some threshold. As discussed above, the sigmoid function shown here is intended to represent any function that normalizes the output to a value between 0 and 1.

[0239] The complete transfer function for layer 1 (having k neurons in layer 1) can be written in matrix notation as follows:

number

[0240] More compactly, the full transfer function for layer 1 can be written in vector notation as:

number

[0241] The neural connections and activation values ​​are propagated in this manner throughout the hidden layer 916 of the network until the network reaches the output layer 920. In the output layer 920, each neuron is a "bucket" or classification, and the activation value represents the probability that the input object should be classified for that perceptron. The classifications can be mutually exclusive or multinomial. For example, in a computer vision example of character recognition, a character may be best assigned only one value, or in other words, a single character is not expected to be both a "4" and a "9" at the same time. In that case, the neurons in the output layer 920 are binomial perceptrons. Ideally, only one value will exceed a threshold, figuratively "firing" the perceptron, and that value is selected. In the case where multiple perceptrons fire, the one with the highest probability may be selected. The result is that only one value (in this case, "4") should fire, while the rest should be "dark." In fact, if the neural network were theoretically perfect, the "4" neuron would have an activation value of 1.00, while every other neuron would have an activation value of 0.00.

[0242] In the case of a multinomial perceptron, more than one output may be fired. For example, a neural network may determine that a particular document has high activation values ​​for perceptrons corresponding to several departments, such as accounting, information technology (IT), and human resources, while the activation values ​​for perceptrons for legal, manufacturing, and transportation are low. In the case of multinomial classification, a threshold may be defined, and any neurons in the output layer with a probability above the threshold may be considered a "match" (e.g., the document is related to those departments). Neurons below the threshold are considered a mismatch (e.g., the document is not related to those departments).

[0243] The weights and biases of a neural network act as parameters, or "controls", where features in the previous layer are detected and recognized. When a neural network is first initialized, the weights and biases may be assigned randomly or pseudo-randomly. Therefore, the initial outputs are expected to be garbage, since the weights and bias controls are garbage. In the case of a "supervised" learning algorithm, the network is improved by providing a "training" set, which contains objects with known outcomes. Since the correct answer for each object is known, the training set can be used to iteratively move the weights and biases away from the garbage values ​​and towards more useful values. A "validation set" can be used to verify the success of the training. The validation set, like the training set, has known values, and the trained network can be run against the validation set and the results measured.

[0244] Common methods for improving the values ​​include "gradient descent" and "backpropagation". An exemplary gradient descent method involves calculating a "cost" function, which measures the error in the network. For example, in the example, the "4" perceptron would ideally have a value of "1.00", while the other perceptrons would have an ideal value of "0.00". The cost function takes the difference between each output and its ideal value, squares this difference, and then takes the sum of all the differences. Each training example has its own calculated cost. Initially, the cost function is very large because the network does not know how to classify objects. As the network trains and improves, the cost function value is expected to become smaller as the weights and biases are adjusted towards more useful values.

[0245] For example, if we have 100,000 training examples to work with, we can calculate the average cost (e.g., the mathematical mean) across all 100,000 training examples. This average cost provides a quantitative measure of how "badly" the neural network is doing its detection job.

[0246] The cost function can therefore be thought of as a single very complex equation where the inputs are the parameters of the network (weights and biases). The network may have thousands or even millions of parameters, and the cost function has thousands or even millions of input variables. The output is a single value that represents a quantitative measurement of the network's error. The cost function can be expressed as:

number

[0247] Where:

number

number

[0248] Solving such problems symbolically may be prohibitive and in some cases may not even be possible, even if a lot of computational power is available. Rather, neural networks typically solve minimization problems numerically. For example, the network may calculate the gradient of the cost function at any given point, and then shift it by some small amount depending on whether the gradient is positive or negative. The size of the adjustment may depend on the magnitude of the gradient. For example, if the gradient is large, then a larger adjustment is made because the minimum is expected to be "far away". As the gradient becomes smaller, smaller adjustments are made to avoid badly passing the minimum. In terms of multi-vector calculus, this is a gradient function of many variables:

number

[0249]

number

number

number

[0250] Gradient descent involves calculating a gradient function, taking small steps (with a step size that depends on the magnitude of the gradient) in the "downhill" direction of the gradient, and then repeating until a local minimum is found within a threshold.

[0251] Finding a local minimum is

number

[0252] In many cases, the hardest part of gradient descent is

number

number

[0253] However, perceptron values ​​are not hard-coded, but rather depend on the activation values ​​received from the previous layer. The parameters of the perceptron itself (weights and biases) may be adjusted, and it may also be desirable to receive different activation values ​​from the previous layer. For example, if a larger activation value is received from the previous layer, the weights are multiplied by a larger value and therefore have a larger effect on the perceptron's final activation value. The perceptron figuratively "wishes" that a particular activation from the previous layer was larger or smaller. These wishes can be back-propagated to the neurons in the previous layer.

[0254] In the next layer, neurons take into account the wishes from the next downstream layer in determining their own preferred activation values. Again, in this layer, activation values ​​are not hard-coded. Each neuron can adjust its own weights and biases, and then back-propagate the changes to the activation values ​​it wishes to occur. Back-propagation continues layer by layer until the weights and biases of the first hidden layer are set. This layer cannot back-propagate desired changes to the input layer, because the input layer receives activation values ​​directly from the input image.

[0255] After such a round of approximation, the network may receive another round of training using the same or a different training data set, and the process is repeated until a local and / or global minimum is found for the cost function.

[0256] 10 is a flow chart of a method 1000 according to various embodiments. The method 1000 may be used to train a neural network, such as the neural network 900 of FIG.

[0257] At block 1004, the network is initialized. Initially, the neural network 900 includes some number of neurons. Each neuron includes a transfer function or kernel. In the case of a neural network, each neuron includes a parameter such as a weighted sum of each neuron's values ​​from the previous layer plus a bias. The neuron's final value may be normalized to a value between 0 and 1 using a function such as sigmoid or ReLU. Because an untrained neural network knows nothing about its problem space, and because it is very difficult to manually program a neural network to perform a desired function, the parameters for each neuron may initially simply be set to some random value. For example, values ​​may be selected using a pseudorandom number generator in the CPU and then assigned to each neuron.

[0258] At block 1008, the neural network is provided with a training set. In some cases, the training set may be divided into smaller groups. For example, if the training set has 100,000 objects, it may be divided into 1,000 groups, each having 100 objects. These groups can then be used to incrementally train the neural network. At block 1008, the initial training set is provided to the neural network. Alternatively, the complete training set can be used at each iteration.

[0259] In block 1012, training data is propagated through the neural network. Since the initial values ​​are random and therefore essentially garbage, it is expected that the outputs will also be garbage values. In other words, if the neural network 900 of FIG. 9 had not been pre-trained, when the input image 904 was fed into the neural network, using the first training set, the output layer 920 would not be expected to fire Perceptron 4. Rather, the Perceptron may have values ​​all over the map, with no clear winner and with very low relevance to the number 4.

[0260] At block 1016, the cost function is calculated as described above. For example, in neural network 900, perceptron 4 preferably has a value of 1.00 and each other perceptron preferably has a value of 0.00. The difference between the desired and actual output values ​​is calculated and squared. An individual cost function for each training input may be calculated, and the total cost function for the network may be calculated as the average of the individual cost functions.

[0261] In block 1020, the network may then calculate the negative gradient of the cost function to find the local minimum of the cost function, or in other words, the error. For example, the system may use backpropagation to numerically find the negative gradient. After calculating the negative gradient, the network may adjust the parameters (weights and biases) by some amount in the "downward" direction of the negative gradient.

[0262] After computing the negative gradient, the system determines whether it has reached a local minimum (e.g., whether the gradient reaches 0 within a threshold) at decision block 1024. If a local minimum has not been reached, the neural network is not sufficiently trained and control returns to block 1008 with a new training set. The training sequence continues at block 1024 until a local minimum is reached.

[0263] Once the local minimum is reached and the corrections are backpropagated, the neural network is ready at block 1032.

[0264] Figure 11 is a flow chart of a method 1100. Method 1100 illustrates a method for using a neural network, such as network 900 of Figure 9, to classify objects.

[0265] In block 1104, the network extracts activation values ​​from the input data. For example, in the example of Figure 9, each pixel in the input image 904 is assigned an activation value to a neuron 908 in the input layer 912.

[0266] At block 1108, the network propagates activation values ​​from the current layer to the next layer in the neural network. For example, after activation values ​​are extracted from the input image, they may be propagated to the first hidden layer of the network.

[0267] At block 1112, for each neuron in the current layer, the neuron calculates the sum of the weighted and biased activation values ​​received from each neuron in the previous layer. For example, in the illustration of Figure 9, neuron 0 in the first hidden layer is connected to each neuron in the input layer 912. A weighted sum of values ​​is calculated from their activation values ​​and a bias is applied.

[0268] In block 1116, for each neuron in the current layer, the network normalizes the activation value by applying a function such as sigmoid, ReLU, or some other function.

[0269] At decision block 1120, the network determines whether it has reached the final layer in the network. If this is not the final layer, control returns to block 1108, where the activation values ​​at this layer are propagated to the next layer.

[0270] Returning to decision block 1120, if the network is at the final layer, the neurons in this layer are perceptrons that provide the final output value for the object. At terminal 1124, the perceptrons are classified and used as output values.

[0271] Figure 12 is a block diagram illustrating selected elements of an analyzer engine 1204. The analyzer engine 1204 may be configured to provide analysis services, such as via a neural network. Figure 12 illustrates a platform for providing analysis services. Analysis, such as neural analysis and other machine learning models, may be used in some embodiments to provide one or more features of the present disclosure.

[0272] Note that although the analyzer engine 1204 is shown here as a single modular object, in some cases different aspects of the analyzer engine 1204 may be provided by separate hardware or by separate guests (e.g., VMs or containers) on a hardware system.

[0273] The analyzer engine 1204 includes an operating system 1208. Typically, the operating system 1208 is a Linux operating system, although other operating systems such as Microsoft Windows, Mac OS X, UNIX, etc. can be used. The analyzer engine 1204 also includes a Python interpreter 1212, which can be used to run Python programs. A Python module known as Numerical Python (NumPy) is often used for neural network analysis. This is a popular choice, but other non-Python or non-NumPy systems can also be used. For example, neural networks can be implemented in Matrix Laboratory (MATLAB), C, C++, Fortran, R, or any other compiled or interpreted computer language.

[0274] GPU array 1224 may include an array of graphics processing units that can be used to perform the neural network functions of neural network 1228. While GPU arrays are a popular choice for this type of processing, it should be noted that neural networks can also be implemented in a CPU, or in an ASIC or FPGA that is specifically designed to implement neural networks.

[0275] Neural network 1228 contains the actual code for implementing the neural network and, as mentioned above, is typically programmed in Python.

[0276] The results interpreter 1232 may include logic separate from the neural network functions that can be used to operate on the output of the neural network to assign objects to particular classifications, perform additional analysis, and / or provide recommended corrective actions.

[0277] The object database 1236 may include a database of known malware objects and their classifications. The neural network 1228 may be initially trained on the objects in the object database 1236, and as new objects are identified, the object database 1236 may be updated with the results of additional neural network analyses.

[0278] Once the results are obtained, they may be sent to the appropriate destination via the network interface 1220.

[0279] FIG. 13 is a block diagram of a circuit programming ecosystem according to various embodiments.

[0280] The circuit programming ecosystem 1300 includes a computing device 1302 and an accelerator circuit 1304. The computing device 1302 may be, for example, an engineering workstation or other suitable computing device with an accelerator circuit 1304 attached. In one example, the accelerator circuit 1304 is a Peripheral Component Interconnect Express (PCIe) card that extends the capabilities of the computing device 1302, such as by providing hardware acceleration for AI problems. In another example, an SoC may include both the computing device 1302 and the accelerator circuit 1304 in a tightly coupled configuration (e.g., with a direct hardware connection), as shown in FIG. 8 above. In yet another example, the computing device 1302 may be an orchestrator that manages a data center or cloud services. In that case, the accelerator circuit 1304 may be attached as a PCIe extension to a rack-mounted server. Alternatively, the accelerator circuitry 1304 can be part of a "thread" of similar devices in a rack-scale architecture. In that case, the thread may provide a backplane connection to a network fabric, which may be or include, as non-limiting examples, Intel® Omni-Path™ Architecture (OPA), TrueScale™, Ultra Path Interconnect (UPI) (formally called QPI or KTI), FibreChannel, Ethernet®, FibreChannel over Ethernet® (FCoE), InfiniBand, PCI, PCIe, or fiber optics, to name a few. Many other configurations between the computing devices 1302 and the accelerator circuitry 1304 are possible.

[0281] The computing device 1302 includes a hardware platform 1308. An example of a hardware platform is provided in SoC 800 of Figure 8. Other hardware platforms may also be provided, and generally any device having a suitable processor and memory (e.g., any "Von Neumann machine") may be used for the hardware platform 1308.

[0282] The computing device 1302 includes a communications driver 1312 that enables the computing device 1302 to communicate with an accelerator circuit 1304. The accelerator circuit 1304 may be any suitable circuit provided with a flexible or dynamic register file, as described throughout this specification. For example, the hardware circuit 100 of FIG. 1 provides such an accelerator.

[0283] The computing device 1302 also includes programming software 1310. The programming software 1310 may include machine-executable instructions stored on one or more tangible, non-transitory computer-readable storage media that, when executed, instruct the hardware platform 1308 to perform a particular method, such as, for example, the method (or any portion thereof) illustrated in FIG.

[0284] In use, an engineer or other user operates the programming software 1310 by selecting appropriate per-layer register configurations for the various layers of a known neural network. In selecting register configurations, the programmer may consider factors such as data sparsity, tensor shape, and other factors that may affect the efficiency of register usage within a layer. In some cases, the programming software 1310 may include applications that assist the user in making appropriate register size selections.

[0285] Some existing solutions have similar software to assist users in finding the optimal data size for a particular tensor in a layer, taking into account factors such as data stationarity, data sparsity, and tensor shape. However, those existing systems are limited to the fixed register size provided by the circuit. For example, the software may determine that 128 bytes is the preferred size for an IF tensor in a layer. However, if the accelerator circuit has fixed 64-byte registers, the software can allocate at most 64 bytes for the IF. The only option to obtain a larger 128-byte register was to reconfigure the circuit (e.g., reconfigure the FPGA) with a larger IF register. However, those register configurations were then fixed for the entire NN. If less space was needed for the IF in a different layer, the excess capacity was wasted.

[0286] In contrast, the accelerator circuitry herein may provide elastic registers, where register sizes can be reconfigured at runtime on a layer-by-layer basis, in which case software may be able to "borrow" excess capacity from other registers in the same register file, subject only to the constraints of the resolution of the register sub-banks, and in some cases the requirement that one or more sub-banks may be "reserved" for each tensor as the minimum register size for that tensor.

[0287] Therefore, when interfacing with the accelerator circuitry herein, the configuration software is free to allocate larger registers for specific tensors. The software may do this by borrowing from sub-banks of registers from other registers in the same register file if a particular layer requires a larger data size for a particular tensor.

[0288] After the user finalizes the per-layer register file selection, the programming software 1310 may operate the communication driver 1312 to send the NN input and per-layer register configuration to the accelerator circuit 1304.

[0289] The accelerator circuitry 1304 receives the NN inputs and per-layer register configurations to the SRAM. These data may be used to program glue logic 1318, which tracks the active layers and inter-layer data propagation. The glue logic 1318 may use the per-layer register configurations to program configuration registers 1320 with the register configurations for the active layers of the NN.

[0290] The configuration register 1320 programs the flexible register 1328 with the desired register configuration for the active layer. For example, appropriate values ​​may be provided to the multiplexers and / or demultiplexers as shown in FIG.

[0291] With the appropriate data available in the SRAM 1316 and the desired register configuration applied to the flexible registers 1328, the PE bank 1324 can then perform mathematical operations on the layer, such as by performing multiple parallel MAC operations.

[0292] 14 is a flowchart of a method 1400 of programming a hardware circuit, according to various embodiments. The method 1400 may be performed in whole or in part by a computing device, such as the computing device 1300 of FIG. 13, or by any other suitable device.

[0293] At block 1404, the device receives input data for an AI problem that can be solved by a NN, such as by a DNN accelerator circuit, as described throughout this specification.

[0294] In block 1408, the operator determines the tensor shape, data sparsity, data stationarity, and other relevant information for each layer in the DNN. These factors influence the preferred register file size for each layer.

[0295] At block 1412, the user determines a preferred register configuration for each layer according to the input received at block 1408. In some cases, the computer software may assist the user in determining a preferred register configuration, such as by providing hints or suggestions for a particular layer.

[0296] In block 1416, the system sends the configuration to an AI accelerator circuit, such as hardware circuit 100 of Figure 1 or any other suitable circuit. This may include flashing a ROM, sending the data to a flash memory or some other SRAM, or performing some other action to load the appropriate data into the accelerator circuit.

[0297] In block 1420, the system starts the accelerator circuit, such as by applying power or sending a "start" signal to the circuit. The accelerator circuit then performs the DNN inference computation in hardware, including using the provided per-layer register configuration.

[0298] In block 1424, the system receives the inference results from the DNN from the accelerator circuitry. The user may then apply the results as desired.

[0299] At block 1490, the method is complete. Variations in implementation

[0300] The foregoing outlines features of some embodiments so that those skilled in the art may better understand various aspects of the present disclosure. The foregoing detailed description sets forth example apparatus, methods, and systems relating to a system for runtime configuration of register files according to one or more embodiments of the present disclosure. For example, features such as structure, functionality, and / or properties are described in the context of one embodiment for convenience; various embodiments may be implemented using any suitable one or more of the described features.

[0301] As used throughout this specification, the phrase "one embodiment" is intended to refer to one or more embodiments. Moreover, different uses of the phrase "one embodiment" may refer to different embodiments. The phrase "in another embodiment" or "in a different embodiment" refers to an embodiment different from the previously described embodiment, or the same embodiment with additional features. For example, "in one embodiment, a feature may be present. In another embodiment, an additional feature may be present." The above example may first refer to an embodiment having features A, B, and C, while the second may refer to an embodiment having features A, B, C, and D, an embodiment having features A, B, and D, an embodiment having features D, E, and F, or any other variation.

[0302] In the foregoing description, various aspects of the exemplary implementations may be described by those skilled in the art using terms commonly employed to convey the substance of their work to others skilled in the art. It will be apparent to one skilled in the art that the embodiments disclosed herein may be practiced with only some of the described aspects. For purposes of explanation, specific numbers, materials, and configurations are set forth to provide a thorough understanding of the exemplary implementations. In some cases, the disclosed embodiments may be practiced without the specific details. In other instances, well-known features have been omitted or simplified so as not to obscure the illustrated embodiments.

[0303] For purposes of this disclosure and the appended claims, the article "a" refers to one or more of an item. The phrase "A or B" is intended to include the "inclusive or," e.g., A, B, or (A and B). "A and / or B" means A, B, or (A and B). For purposes of this disclosure, the phrase "A, B, and / or C" means A, B, C, (A and B), (A and C), (B and C), or (A, B, and C).

[0304] The disclosed embodiments may be readily used as a basis for designing or modifying other processes and structures to carry out the teachings herein. Any equivalent structures to those disclosed do not depart from the spirit and scope of the present disclosure. Design considerations may result in alternative arrangements, design options, device possibilities, hardware configurations, software implementations, and equipment options.

[0305] As used throughout this specification, "memory" is expressly intended to include both volatile and non-volatile memory. Thus, for example, an "engine" as described above may include instructions encoded in volatile or non-volatile memory that, when executed, instruct a processor to perform the operations of any of the methods or procedures disclosed herein. This configuration is expressly intended to correspond to a computing device that is "sitting on a shelf" in a non-operational state. For example, in this example, "memory" may include one or more tangible, non-transitory computer-readable storage media that store stored instructions. These instructions, in combination with the hardware platform (including the processor) on which they are stored, may constitute a computing device.

[0306] In other embodiments, a computing device may also correspond to an operating device. For example, in this configuration, "memory" may include a volatile or run-time memory (e.g., RAM) that is already loaded with instructions. These instructions, when fetched and executed by a processor, may provide a method or procedure as described herein.

[0307] In yet another embodiment, there may be one or more tangible non-transitory computer readable storage media having executable instructions stored thereon that, when executed, cause a hardware platform or other computing system to perform a method or procedure. For example, the instructions may be executable object code including software instructions executable by a processor. The one or more tangible non-transitory computer readable storage media may include, as illustrative and non-limiting examples, magnetic media (e.g., hard drives), flash memory, ROM, optical media (e.g., CDs, DVDs, Blu-Ray), non-volatile random access memory (NVRAM), non-volatile memory (NVM) (e.g., Intel 3D Xpoint), or other non-transitory memory.

[0308] Also provided herein are certain methods, e.g., shown in flow charts and / or signal flow diagrams. The order or acts disclosed in these methods disclose an example ordering that may be used in some embodiments, but this ordering is not intended to be limiting unless expressly stated otherwise. In other embodiments, acts may be performed in other logical orders. In general, an act should be considered as necessarily preceding another act only if the first act provides a result required to perform the second act. Moreover, the sequence of acts, in itself, should be understood to be a non-limiting example. In appropriate embodiments, some acts may be omitted as unnecessary or undesirable. In the same or different embodiments, other acts not shown may be included in the method to provide additional results.

[0309] In certain embodiments, some of the components illustrated herein may be omitted or integrated. In a general sense, the arrangements illustrated in the figures may be more logical in their representation, while the physical architecture may include various permutations, combinations, and / or hybrids of these elements.

[0310] With numerous examples provided herein, interactions may be described in terms of two, three, four, or more electrical components. These descriptions are provided for purposes of clarity and example only. Any of the illustrated components, modules, and elements of the figures may be combined in various configurations, all of which fall within the scope of this specification.

[0311] In certain cases, it may be easier to explain one or more functions by disclosing only selected elements. Such elements are selected to show certain information to facilitate explanation. The inclusion of an element in a figure is not intended to suggest that the element must appear in the present disclosure as claimed, and the exclusion of a particular element from a figure is not intended to suggest that the element is excluded from the present disclosure as claimed. Similarly, any method or flow shown herein is provided merely as an example. The inclusion or exclusion of an operation in such a method or flow should be understood to be the same as the inclusion or exclusion of other elements as described in this paragraph. When operations are shown in a particular order, the order is merely a non-limiting example. Unless explicitly specified, the order of operations may be changed to suit a particular embodiment.

[0312] Other changes, substitutions, variations, alterations, and modifications will be apparent to those of ordinary skill in the art, and all such changes, substitutions, variations, alterations, and modifications are intended to fall within the scope of this specification.

[0313] In order to assist the United States Patent and Trademark Office (USPTO), and any reader of any patent or publication from which this specification is derived, Applicants: (a) do not intend to invoke 35 U.S.C. §112(f) of any of the appended claims, or their equivalents, as they exist on the filing date of the present invention, unless the words "means for" or "step for" are specifically used in a particular claim; and (b) do not intend by any reference herein to limit the present disclosure in any manner that is not otherwise expressly reflected in the appended claims, as originally presented or as amended.

Claims

1. generating a plurality of layer-specific register schedules for a deep learning neural network, where at least two layer-specific register schedules are different from each other, the layer-specific register schedules for partitioning a register file into a plurality of tensor-specific registers, the register file including a plurality of discrete sub-banks, each of the tensor-specific registers including one or more of the sub-banks; and programming an artificial intelligence (AI) hardware circuit with the plurality of layer specific register schedules. wherein the programming step comprises programming a configuration register to provide the tier-specific register schedule.

2. 2. The method of claim 1, wherein the plurality of tensor-specific registers includes registers for input features (IF), output features (OF), and filter weights (FL).

3. 2. The method of claim 1, wherein the layer-specific register schedule is for multiple register files, and the schedule for the multiple register files is the same within a layer.

4. The method of claim 3 , wherein the register file is associated with each processing element of the AI ​​hardware circuit.

5. 2. The method of claim 1, wherein generating a layer-specific register schedule comprises providing smaller registers for tensors with sparse data in a layer compared to tensors with non-sparse data in the layer.

6. The method of claim 1 , wherein generating a layer-specific register schedule comprises providing excess capacity for tensors with high stationarity within the layer.

7. The method of claim 1 , wherein generating a layer-specific register schedule comprises taking into account tensor shapes within the layer.

8. A plurality of processing element (PE) circuits providing one or more neuron layers for the neural network; a plurality of register files communicatively coupled to and associated with respective ones of the PE circuits, the register files having circuits for storing a plurality of types of data, each of which includes a C TOT byte, and said C TOT The bytes are divided into subbanks of B bytes each, where C TOT and B is an integer, the sub-bank having input and output multiplexer circuitry configured to selectively assign the sub-bank to selected inputs or outputs of the PE, where the inputs or outputs represent multiple types of data; and and a control circuit configured to change the sub-bank assignment according to an active layer of the neural network at run-time. An apparatus comprising:

9. The apparatus of claim 8 , wherein the PE circuits are substantially identical to one another in hardware.

10. The apparatus of claim 8 , wherein the PE circuit is a multiply-accumulate circuit (MAC).

11. 9. The apparatus of claim 8, wherein the control circuitry comprises an input multiplexer and an output demultiplexer for each of the sub-banks.

12. The apparatus of claim 8 , wherein the at least two species of data comprises three species of data.

13. The apparatus of claim 12 , wherein the three types of data include input features (IF), output features (OF), and filter weights (FL).

14. 14. The apparatus of claim 13, wherein the register file includes at least one dedicated sub-bank for each of the three types of data.

15. The apparatus of claim 14 , wherein the dedicated sub-bank does not have input and output multiplexers.

16. 9. The apparatus of claim 8, wherein B is between 1 and 128.

17. The apparatus of claim 8 , wherein the seed data comprises an input tensor or an output tensor for the neural network.

18. The apparatus of claim 8 , wherein the control circuitry further comprises a stored per-layer register configuration for the register file.

19. 20. The apparatus of claim 18, wherein the per-layer register organization accounts for data sparsity and data stationarity within individual layers of the neural network.

20. 20. The apparatus of claim 18, wherein the per-layer register organization takes into account tensor dimensions within individual layers of the neural network.

21. One or more tangible, non-transitory computer readable media having stored thereon instructions for configuring a deep neural network (DNN) accelerator circuit, the instructions comprising: generating a plurality of layer-specific register schedules for the DNN accelerator circuit, where at least two layer-specific register schedules are different from each other, the layer-specific register schedules for partitioning a register file into a plurality of tensor-specific registers, the register file including a plurality of discrete sub-banks, each of the tensor-specific registers including one or more of the sub-banks; sending the layer-specific register schedules along with the deep learning problem to a neural network hardware accelerator; and Instructing the DNN accelerator circuit to begin execution.

1. One or more tangible, non-transitory computer-readable media comprising:

22. 22. The one or more tangible, non-transitory computer-readable media of claim 21, wherein the plurality of tensor specific registers include registers for input features (IF), output features (OF), and filter weights (FL).

23. 22. The one or more tangible, non-transitory computer-readable media of claim 21, wherein the tier-specific register schedule is for multiple register files, and the schedule for the multiple register files is the same within a tier.

24. 24. The one or more tangible, non-transitory computer-readable media of claim 23, wherein the register file is associated with each processing element of the neural network accelerator circuit.

25. 22. The one or more tangible, non-transitory computer-readable media of claim 21, wherein generating a layer-specific register schedule comprises providing smaller registers for tensors with sparse data in a layer compared to tensors with non-sparse data in the layer.

26. 22. The one or more tangible, non-transitory computer-readable media of claim 21, wherein generating a layer-specific register schedule comprises providing excess capacity for tensors with high stationarity within the layer.

27. 22. The one or more tangible, non-transitory computer-readable media of claim 21, wherein generating a layer-specific register schedule comprises considering tensor shapes within the layer.

Citation Information

Patent Citations

  • Configurable processor element arrays for implementing convolutional neural networks

    US20200134417A1

  • Method for static scheduling of artificial neural networks for a processor

    US20210191765A1

  • Compiler assisted register file write reduction

    US20210192673A1

  • Neural processor

    WO2019245348A1