A parallel depth-wise processing architecture for neural networks.

The neural network processing architecture addresses inefficiencies in resource utilization by enabling depth-wise parallelism, enhancing performance and scalability for edge devices through parallel processing of inputs at multiple depths.

JP2024537610AActive Publication Date: 2024-10-16QUALCOMM INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024513244
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-02
Filing Date
2022-08-22
Publication Date
2024-10-16
Estimated Expiration
2042-08-22

AI Technical Summary

Technical Problem

Existing neural network processing architectures face inefficiencies in resource utilization and latency due to the lack of support for depth-wise parallelism, leading to underutilization of processing elements and reduced performance in edge devices with power and space constraints.

Method used

Implementing a neural network processing architecture that enables both input and depth parallelism by using multiple groups of processing elements to process inputs in parallel at multiple depths, with local accumulators and global accumulators to manage intermediate outputs efficiently.

Benefits of technology

This approach enhances resource utilization and improves inference performance by increasing the number of operations per second, making it more efficient and scalable for edge devices with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024537610000001_ABST
    Figure 2024537610000001_ABST
Patent Text Reader

Abstract

Methods and apparatus for performing machine learning tasks, in particular neural network processing architectures and circuits for improving performance through depth-parallel processing. One exemplary neural network processing circuit generally includes multiple groups of processing element (PE) circuits, each group of PE circuits including multiple PE circuits configured to process inputs in parallel at multiple depths.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Cross-reference to related art This application claims priority to U.S. Patent Application No. 17 / 465,550, filed September 2, 2021, which is incorporated by reference herein in its entirety for all applicable purposes.

[0002] Aspects of the present disclosure relate to machine learning, and in particular to circuits, neural network processing architectures, and techniques for deep parallel processing to perform machine learning tasks. [Background technology]

[0003] Machine learning is generally the process of generating a trained model (e.g., an artificial neural network, tree, or other structure) that represents a generalized fit to a set of training data. By applying the trained model to new data, inferences are generated that can be used to gain insight into the new data. Sometimes, applying a model to new data is described as "performing inference" on the new data.

[0004] The proliferation of machine learning to enable various machine learning (or artificial intelligence) tasks has created a demand for more efficient processing of machine learning model data. In some cases, specialized hardware, such as machine learning accelerators, can be used to enhance the processing system's ability to process machine learning model data. However, such hardware requires space and power, which are not always available on the processing device. For example, "edge processing" devices, such as mobile devices, always-on devices, and Internet of Things (IoT) devices, must typically balance processing power with power and packaging constraints. Furthermore, accelerators may move data over a common data bus, which can cause significant power usage and introduce latency to other processes sharing the data bus. Therefore, other aspects of processing systems for processing machine learning model data are being considered. Summary of the Invention

[0005] The systems, methods, and devices of the present disclosure each have several aspects, no single one of which represents its desirable attributes. Without limiting the scope of the present disclosure, as expressed by the following claims, several features are briefly discussed below. After reviewing this discussion, and in particular after reading the section entitled "Description of the Preferred Embodiments," one will understand how the features of the present disclosure provide the advantages described herein.

[0006] Certain aspects of the present disclosure are directed to a processing circuit. The processing circuit generally includes multiple groups of processing element (PE) circuits. Each group of PE circuits includes multiple PE circuits configured to process inputs in parallel at multiple depths. Each PE circuit generally includes one or more multiplier circuits and a local accumulator having an input coupled to an output of the one or more multiplier circuits. Each multiplier circuit may be configured to calculate partial products, and the local accumulator may be configured to generate a sum from the partial products calculated by each of the one or more multiplier circuits.

[0007] Certain aspects of the present disclosure are directed to a method of neural network processing. The method generally includes receiving an input for processing. For each segment of a plurality of segments of the received input, intermediate outputs for a respective depth of a plurality of depths in the neural network are generated substantially in parallel based on weights in the neural network associated with the respective depth. The intermediate outputs for each respective depth are accumulated into a final output. At least the final output is output to a memory bus.

[0008] Other aspects provide a processing system configured to perform the aforementioned method as well as methods described herein; a non-transitory computer readable medium including instructions that, when executed by one or more processors of the processing system, cause the processing system to perform the aforementioned method as well as methods described herein; and a computer program product embodied on the computer readable storage medium including code for performing the aforementioned method as well as methods described herein; and the processing system comprising means for performing the aforementioned method as well as methods described herein.

[0009] To the accomplishment of the foregoing and related ends, the one or more aspects comprise the features hereinafter fully described and particularly pointed out in the claims. The following description and the annexed drawings set forth in detail certain illustrative features of the one or more aspects. These features are indicative, however, of only a few of the various ways in which the principles of the various aspects may be employed. [Brief description of the drawings]

[0010] So that the above-mentioned features of the present disclosure may be understood in detail, a more particular description thereof, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the accompanying drawings, in which it is to be noted, however, that the accompanying drawings show only certain exemplary embodiments of the present disclosure, and therefore should not be considered as limiting the scope of the present disclosure, since the present description may admit of other equally effective embodiments.

[0011] [Figure 1A] FIG. 1 illustrates examples of various types of neural networks that may be implemented according to aspects of the present disclosure. [Figure 1B] FIG. 1 illustrates examples of various types of neural networks that may be implemented according to aspects of the present disclosure. [Figure 1C] FIG. 1 illustrates examples of various types of neural networks that may be implemented according to aspects of the present disclosure. [Figure 1D] FIG. 1 illustrates examples of various types of neural networks that may be implemented according to aspects of the present disclosure. [Diagram 2] FIG. 1 illustrates an example of a conventional convolution operation that may be implemented in accordance with aspects of the present disclosure. [Diagram 3] FIG. 1 is a block diagram of an example neural network processing architecture having tightly coupled memory (TCM) and processing elements (PEs) in which certain aspects of the present disclosure may be implemented. [Figure 4] FIG. 1 illustrates the utilization of processing elements in a neural network processing architecture in which different depths of the input are processed sequentially. [Diagram 5] FIG. 1 illustrates an example neural network processing architecture in which multiple processing element groups are configured to process multiple inputs at multiple depths in parallel, in accordance with certain aspects of the present disclosure. [Figure 6] FIG. 2 illustrates an exemplary data flow timing diagram for parallel processing of different depths of multiple inputs in accordance with certain aspects of the present disclosure. [Figure 7] FIG. 2 is a block diagram of an example circuit for deep-parallel processing of inputs in accordance with certain aspects of the present disclosure. [Figure 8] FIG. 1 illustrates the utilization of processing elements in a neural network processing architecture where different depths of inputs are processed in parallel. [Figure 9] FIG. 2 illustrates example operations that may be performed by a processing system to process multiple depths of input in parallel, in accordance with certain aspects of the present disclosure. [Figure 10] FIG. 1 is a block diagram illustrating an example electronic device having neural network processing circuitry in which multiple depths of input are processed in parallel, in accordance with certain aspects of the present disclosure.

[0012] For ease of understanding, wherever possible, like reference numerals have been used to designate like elements common to the figures, and it is contemplated that elements and features of one embodiment may be beneficially incorporated in other embodiments without further detail. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Aspects of the present disclosure provide an apparatus, method, processing system, and computer-readable medium for processing multiple depths of an input in parallel.

[0014] A simple introduction to neural networks, deep neural networks, and deep learning Neural networks are organized into layers of interconnected nodes. In general, a node (or neuron) is where computations are performed. For example, a node may combine input data with a set of weights (or coefficients) that amplify or attenuate the input data. Amplification or attenuation of an input signal can therefore be viewed as an assignment of relative importance to various inputs with respect to the task the network is trying to learn. In general, products of inputs and weights are summed (or accumulated), and this sum is then passed through the node's activation function to determine whether and to what extent the signal should proceed further through the network.

[0015] In its most basic implementation, a neural network may have an input layer, a hidden layer, and an output layer. A "deep" neural network generally has two or more hidden layers.

[0016] Deep learning is a method for training deep neural networks. In general, deep learning maps inputs to a network to outputs from the network, and is therefore sometimes called a "universal approximator" because it can learn to approximate an unknown function f(x)=y between any input x and any output y. In other words, deep learning finds the correct f to transform x to y.

[0017] More specifically, deep learning trains each layer of nodes based on a distinct set of features that are the output from the previous layer. Thus, with each successive layer of a deep neural network, the features become more complex. Therefore, deep learning is powerful because it can progressively extract higher level features from input data by learning to represent the input at successively higher levels of abstraction at each layer, thereby building useful feature representations of the input data to perform complex tasks such as object recognition.

[0018] For example, when presented with visual data, the first layer of a deep neural network can be trained to recognize relatively simple features, such as edges, in the input data. In another example, when presented with auditory data, the first layer of a deep neural network can be trained to recognize spectral power at specific frequencies in the input data. The second layer of the deep neural network can then be trained to recognize combinations of features, such as simple shapes for the visual data or combinations of sounds for the auditory data, based on the output of the first layer. Higher layers can then be trained to recognize complex shapes in the visual data or words in the auditory data. Even higher layers can be trained to recognize common visual objects or spoken phrases. Thus, deep learning architectures can perform particularly well when applied to problems that have a natural hierarchical structure.

[0019] Layer Connectivity in Neural Networks Neural networks, such as deep neural networks (DNNs), may be designed using a variety of connectivity patterns between layers.

[0020] 1A illustrates an example of a fully-connected neural network 102, in which each node in the first layer communicates its output to every node in the second layer, such that each node in the second layer receives input from every node in the first layer.

[0021] 1B illustrates an example of a locally connected neural network 104. In the locally connected neural network 104, nodes in a first layer may be connected to a limited number of nodes in a second layer. More generally, the locally connected layer of the locally connected neural network 104 may be configured such that each node in the layer has the same or similar connectivity pattern, but with connection strengths (or weights) that may have different values ​​(e.g., values ​​associated with local regions 110, 112, 114, and 116 of the first layer nodes). The locally connected connectivity patterns may result in spatially distinct receptive fields in the higher layers, since nodes in a given region may receive inputs that are tuned through training to the characteristics of a limited portion of all inputs to the network.

[0022] One type of locally connected neural network is a convolutional neural network (CNN). Figure 1C shows an example of a convolutional neural network 106. The convolutional neural network 106 may be configured such that the connection strengths associated with inputs for each node in the second layer (e.g., for a local region 108 that is superimposed on another local region of a node in the first layer) are shared. Convolutional neural networks are particularly suited to problems where the spatial location of the inputs makes sense.

[0023] One type of convolutional neural network is the deep convolutional network (DCN), which is a network of multiple convolutional layers and may be further configured, for example, using pooling layers and normalization layers.

[0024] 1D illustrates one embodiment of a DCN 100 that is designed to recognize visual features in an image 126 generated by an image capture device 130. For example, if the image capture device 130 is a camera mounted in or on a vehicle (or otherwise moves with the vehicle), the DCN 100 may be trained using various supervised learning techniques to identify traffic signs, and even numbers on traffic signs. Similarly, the DCN 100 may be trained for other tasks, such as identifying lane markings or identifying traffic signals. These are just a few example tasks, and many other tasks are possible.

[0025] In the embodiment of FIG. 1D, the DCN 100 includes a feature extraction section and a classification section. Upon receiving the image 126, the convolutional layer 132 applies a convolutional kernel (e.g., as shown and described in FIG. 2) to the image 126 to generate a first set of feature maps 118 (or intermediate activations). In general, a "kernel" or "filter" includes a multi-dimensional array of weights designed to emphasize various aspects of the input data channels. In various embodiments, "kernel" and "filter" may be used interchangeably to refer to a set of weights applied in a convolutional neural network.

[0026] The first set of feature maps 118 may then be subsampled by a pooling layer (e.g., a max pooling layer, not shown) to generate a second set of feature maps 120. The pooling layer may reduce the size of the first set of feature maps 118 while still retaining much of the information to improve the performance of the model. For example, the second set of feature maps 120 may be downsampled by the pooling layer from a 28×28 matrix to a 14×14 matrix.

[0027] This process can be repeated through many layers, in other words, the second set of feature maps 120 can be further convolved through one or more subsequent convolutional layers (not shown) to generate one or more subsequent sets of feature maps (not shown).

[0028] 1D , the second set of feature maps 120 is provided to a fully connected layer 124, which then generates an output feature vector 128. Each feature in the output feature vector 128 may include a number, such as "sign," "60," and "100," corresponding to a possible feature of the image 126. In some cases, a softmax function (not shown) may convert the numbers in this output feature vector 128 into probabilities. In such a case, the output 122 of the DCN 100 is the probability that the image 126 contains one or more features.

[0029] A softmax function (not shown) can convert the individual elements of the output feature vector 128 into probabilities such that the output 122 of the DCN 100 is one or more probabilities that the image 126 contains one or more features, such as a sign having the number "60" on it, as in the image 126. Thus, in this example, the probabilities in the output 122 for "sign" and "60" should be higher than the probabilities of other elements of the output 122, such as "30", "40", "50", "70", "80", "90", and "100".

[0030] Prior to training the DCN 100, the output 122 produced by the DCN 100 may be inaccurate. Therefore, the error between the output 122 and a target output known a priori can be calculated. For example, in this case the target output is an indication that the image 126 contains a "sign" and the number "60". This known target output can then be used to adjust the weights of the DCN 100 through training so that subsequent outputs 122 of the DCN 100 achieve (with high probability) that target output.

[0031] To adjust the weights of the DCN 100, a learning algorithm can calculate a gradient vector for those weights. This gradient vector can indicate the amount by which the error would increase or decrease if the weights were adjusted in a particular manner. The weights can then be adjusted to reduce the error. This method of adjusting weights is sometimes referred to as "backpropagation" because the adjustment process involves a "backward pass" through the layers of the DCN 100.

[0032] In practice, the error gradient of the weights may be calculated over a small number of examples such that the calculated gradient approximates the true error gradient. This approximation method is sometimes called stochastic gradient descent. Stochastic gradient descent can be repeated until the achievable error rate of the entire system stops decreasing or until the error rate reaches a target level.

[0033] After training, new images can be presented to the DCN 100 and it can generate inferences, such as classifications or probabilities of various features being present in the new image.

[0034] Convolutional techniques for convolutional neural networks Convolution is commonly used to extract useful features from an input data set. For example, in a convolutional neural network as described above, convolution allows the extraction of various features using kernels and / or filters whose weights are automatically learned during training. Inference is then made by combining the extracted features.

[0035] Activation functions can be applied before and / or after each layer of a convolutional neural network. An activation function is generally a mathematical function that determines the output of a node of a neural network. Therefore, an activation function determines whether a node should pass on information based on whether its input is relevant to the model's prediction. In one embodiment, if y=conv(x) (i.e., y is a convolution of x), then both x and y can generally be considered as "activations". However, with respect to a particular convolution operation, x may also be referred to as a "pre-activation" or "input activation" due to x's presence before that particular convolution, and y may be referred to as an output activation or feature map.

[0036] 2 illustrates 3D convolution, where an input 210 is organized in a 3D space and processed using multiple convolution kernels 220 to generate an output 230. The input 210 may be a 3D input, such as a 3D image having spatial data in each of the three dimensions (e.g., X (horizontal), Y (vertical), and Z (depth) dimensions), or a sequence of 2D images (e.g., video) over time (having X (horizontal) and Y (vertical) dimensions), where time may correspond to the Z (depth) dimension. In this particular example, a 12 pixel by 12 pixel image with some number n of depth cycles may be processed through a corresponding convolution kernel 220 with dimensions of 3 pixels by 3 pixels by n depth cycles. The output 230 may have the same size along the X and Y dimensions and a depth dimension corresponding to the number of convolution kernels 220 used to process the input 210.

[0037] An output-retention technique, in which the output of the neural network is stored and maintained in a memory associated with a processing element, may enable rapid generation of the output 230. Generally, using an output-retention technique involves placing depth cycles (corresponding to different kernels from the multiple convolution kernels 220) in an inner loop of a multi-loop logic structure, an outer loop of which is used to iterate across the X and Y dimensions. However, the output-retention technique may allow accumulator circuits to be reused across depth cycles for a given input in the X and Y dimensions. However, each depth cycle generally involves reloading weights associated with the depth cycle into the processing elements used to process the depth cycle. Furthermore, as kernels are updated, inputs in the X and Y dimensions may be reloaded and processed in one or more processing elements. Some processing techniques may support weight-retention processing of inputs. In such cases, inputs in the X and Y dimensions may be iterated within the inner loop of the multi-loop structure.

[0038] Exemplary Neural Network Processing Architecture and Data Flow FIG. 3 is a block diagram of an example neural network processing architecture 300 illustrating an example data flow sequence in which certain aspects of the disclosure may be implemented. The neural network processing architecture 300 may include multiple processing elements (PEs) 302 for performing data calculations (e.g., multiply-accumulate (MAC) operations) and other operations. The PEs 302 may be implemented using any of a variety of suitable circuits, such as a neural processing unit (NPU), a neural signal processor (NSP), or a compute-in-memory (CIM) circuit. The processing architecture 300 may also include a global memory 304 (labeled "global buffer"), a tightly coupled memory (TCM) 306, an activation buffer 308, a weight buffer 310, a digital post-processing module 312, a memory bus 314, a register bus 316, and a PE bus 318. As used herein, TCM generally refers to memory accessed by a dedicated connection from a processor, such as the PE 302. The activation buffer 308 and the weight buffer 310 may each be configured as a set of register trays. The data stored in the weight buffer 310 may be broadcast to parallel inputs (e.g., inputs to be processed in parallel by the PE 302). A memory bus 314 may couple the global memory 304 to the TCM 306. A register bus 316 may couple the TCM 306 to the activation buffer 308, the weight buffer 310, and the digital post-processing module 312. A PE bus 318 may couple the PE 302 to the activation buffer 308, the weight buffer 310, and the digital post-processing module 312. In this manner, the PE 302 may access various memory resources to read data from the activation buffer 308 and / or the weight buffer 310, and to output results of processing the data read from the activation buffer 308 and / or the weight buffer 310 to the digital post-processing module 312.

[0039] Example parallel processing of input depth Parallel processing generally allows multiple portions or segments of an input to be processed substantially simultaneously by a processing unit such as a neural signal processor (NSP) or neural processing unit (NPU). In general, parallel processing can accelerate the processing of a set of inputs and complete the execution of operations on a set of inputs using less computational resources (e.g., time) and / or using the computational resources more efficiently (e.g., in terms of the ratio of computational resources used to the total computational resources available in a computing system) than would be used in sequential processing of the set of inputs by exploiting the independence of various inputs. Typically, an NSP or NPU may be designed to support input parallel processing on various portions of an input (e.g., defined chunks of a two-dimensional input, such as a block of pixels in an image) and process these portions of the input sequentially (e.g., using different kernel (depth) cycles, as discussed above with respect to FIG. 2) at different depths (e.g., different channels or times). That is, for input partial indices {1,2,3,...,n} and a depth of m, these NSPs or NPUs may be designed to process values ​​at input partial indices {1,2,3,...,n} at depth 1, then process values ​​at input partial indices {1,2,3,...,n} at depth 2, and so on up to depth m. These NSPs or NPUs may be designed to support depth-sequential processing, so that the capabilities of these NSPs or NPUs may be underutilized. Furthermore, increasing the depth of the neural network may exacerbate the effects of underutilization of the processing capabilities of the NSPs or NPUs, and therefore adversely affect the performance metrics of these NSPs or NPUs as the depth of the neural network increases. For example, assuming some maximum number of operations per second that the NSPs or NPUs can support when all processing elements (PEs) in the NSPs or NPUs are used, the number of operations per second that the NSPs or NPUs can support when using depth-sequential processing may be significantly lower.

[0040] To enable increased performance, processing elements within an NSP or NPU may be designed to support increased activation depth. However, increasing the activation depth supported by a processing element may reduce mapping flexibility, reduce clock frequency, and / or reduce the number of inputs that can be processed in parallel using the same hardware resources.

[0041] 4 illustrates an embodiment 400 of the use of processing elements in a neural network processing architecture in which inputs are processed sequentially at different depths within the neural network. In embodiment 400, the architecture may support input parallelism and filter channel parallelism, such that multiple segments of an input (e.g., in the X and Y dimensions as shown in FIG. 2) may be processed in parallel using multiple filters in parallel, but may not support depth parallelism, in which the same segment of an input may be processed at different depths within the neural network (e.g., using different kernels). As shown, the architecture of embodiment 400 may have 32 computing units (labeled "CU-1" through "CU-32"), each of which may include 64 processing elements (PEs) that may be used to process portions of the inputs provided to the architecture in parallel. Each PE may be configured to process four activations and 32 filter channels. In this example, a layer of a ResNet50 network may have an input tensor of size 7×7×512 and several corresponding kernel tensors of size 3×3×512. For any 7×7 input channel, 25 operations may be performed to convolve 25 distinct but potentially overlapping receptive fields with a 3×3 kernel using a stride distance of 1. In this example, a 5×5 feature map may be generated as the output of this layer. Input segments 1-25 may be processed through corresponding processing elements in computing units 1-16 of the architecture as shown. However, because the architecture cannot support depth-wise parallelism, computing resources that could be used to process inputs at another depth may instead be left unused.

[0042] Therefore, in the embodiment 400, a significant amount of computing resources may go unused and performance may not be scalable. For example, resource utilization may be calculated as the product of the number of computing units on which the problem is executed, the number of inputs, the number of activations, and the number of filter channels. In this embodiment, as discussed, the problem may be defined according to the following parameters: depth=512, input X=7, input Y=7, filter X=3, filter Y=3, stride X=1, and stride Y=1. As shown, there are 4 activations and 32 filter channels for each PE, and 25 input segments are processed across 16 of the 32 computing units because the 512 filter channels are mapped across the 16 computing units, each computing unit having 32 filter channels, and 25 input segments are mapped across 25 of the 128 activation inputs. The remaining 16 of the 32 computing units are not further utilized because the architecture used in the embodiment 400 does not support depth-wise parallelism. The number of depth cycles performed to complete this problem is filter x * Filter Y * Depth / Activation=3 * 3 * The depth cycles can be calculated as 512 / 4=1152, and the utilization efficiency compared to the maximum theoretical utilization is (16 * twenty five * 4 * 32) / (32 * 64 * 4 * 32)=20%. Furthermore, due to inefficiencies in utilization, the number of operations supported over a given period of time may similarly be less than the theoretical maximum number of operations supported over that given period assuming full utilization of the architecture's resources.

[0043] Aspects of the present disclosure provide techniques for performing depth-wise parallel processing of input portions in neural network processing architectures. By enabling both input and depth parallel processing, aspects of the present disclosure may enable increased utilization of computing resources (e.g., processing elements) in such architectures. Thus, the techniques described herein may improve inference performance by neural network processing architectures, since increased utilization of available computing resources in the architecture may result in an increased number of operations that can be performed by the architecture compared to architectures designed to support depth-sequential processing.

[0044] Moreover, aspects of the present disclosure provide a scalable processing architecture that allows for implementing different types of parallel processing for any given workload. The processing architecture described herein may allow the option of processing a workload using parallel inputs, parallel kernels, or parallel depths. Furthermore, because (portions of) the inputs can be processed in parallel at different depths, aspects of the present disclosure may reduce the number of processing cycles required to process several depth cycles in a neural network.

[0045] FIG. 5 illustrates an example of a neural network processing architecture 500 in which multiple processing element groups are configured to process multiple portions of an input in parallel at multiple depths, according to certain aspects of the disclosure. In general, the portions of the input may be defined by the tiling pattern used to partition the input. A tiling pattern with a small number of tiles may generally partition the input into larger subportions, while a tiling pattern with a large number of tiles may generally partition the input into smaller subportions. The choice of the tiling pattern used in partitioning the input into various portions for processing may represent a trade-off between performance and accuracy of the inferences generated by the neural network. Using a larger number of tiles may allow the data to be processed at a finer level of granularity in the neural network, but at a greater computational cost, while using a smaller number of tiles (and correspondingly, larger subportions of the input) may allow the data to be processed at a less computational cost in the neural network, but with a greater degree of generality.

[0046] As shown, the neural network processing architecture 500 may include multiple processing element groups 510 configured to process multiple inputs (or portions of inputs) in parallel at multiple depths. In this example architecture, two processing element groups 510A and 510B are shown, but the reader should understand that there may be more than two processing element groups. Each processing element group 510 may include multiple processing elements 512, and the output of each processing element may be output to an associated tap register 514. In this example, processing element group 510A includes four processing elements 512A-512D and processing element group 510B includes four processing elements 512E-512H, but the reader should understand that each processing element group may include more or less than four processing elements. As shown, each processing element 512 includes a multiply-accumulate (MAC) circuit 516 and a local accumulator 518 having an input coupled to the output of the MAC circuit. The outputs of the local accumulators 518 in the processing elements 512 may be coupled to the inputs of the corresponding tap registers 514. In some aspects, the MAC circuit 516 may include multiple multiplier circuits configured to generate partial products based on multiplication of input values ​​and weight values, and the local accumulators 518 may be implemented as adder circuits configured to combine the partial products generated by the individual multipliers in the MAC circuit 516 into a local sum.

[0047] In general, the tap registers 514 in a processing element group 510 may be coupled such that the output of one tap register 514 serves as an input to another tap register 514. The output of the final tap register (e.g., tap register 514D or 514H) in a processing element group 510 may be coupled to an input of a global accumulator circuit 520 (also referred to as the "final accumulator" and labeled "FINAL-ACC"). For each depth cycle processed in parallel, a given tap register 514 may be configured to shift data provided as input from the previous tap register 514 concurrently with the multiply-accumulate operation performed by the processing element 512 corresponding to the given tap register 514. For example, tap register 514B may be configured to shift data provided as input from tap register 514A concurrently with the operation performed by processing element 512B.

[0048] The output of the global accumulator circuit 520 may be coupled to a bus 530, connecting the processing element groups 510 to the digital post-processing logic 540. In general, the value of the global accumulator circuit 520 may be used by the digital post-processing logic 540 in further processing (e.g., biasing, batch normalization (BN), linear / non-linear thresholding, quantization, etc.) the input data for which the global accumulator circuit 520 value was generated. In some aspects, the output of the tap register 514 may also be coupled to the bus 530. The bus 530, in such a case, may be an addressable bus that allows the digital post-processing logic 540 to selectively obtain the data placed on the bus 530 by the global accumulator circuit 520 (and the tap register 514).

[0049] FIG. 6 shows an exemplary data flow timing diagram 600 for parallel processing of different depths of a plurality of inputs, according to a particular aspect of the present disclosure. In this example, the input can be defined as part of a larger input data set, such as data values in a set of coordinates in a three-dimensional space having an X-axis, a Y-axis, and a Z-axis, where the depth dimension corresponds to the Z-axis in the three-dimensional space. As shown in timing diagram 600, processing architecture 500 supports parallel processing of a plurality of inputs over a plurality of depth cycles in the Z-axis. Generally, each depth cycle can be associated with a set of weights used in calculating the results in that depth cycle, as defined in the model.

[0050] As shown, portions of the input can be processed simultaneously over a number E of depth cycles. For example, over E depth cycles, portions of the input located at the same locations in the first and second dimensions and different locations in the third dimension can be processed simultaneously. Values stored in tap registers with respect to the input can be accumulated (e.g., through a serial shift) onto a global accumulator when these inputs are processed. After a given depth cycle is executed, the value stored in the global accumulator can be output to digital post-processing logic for further use. To minimize the adverse impact on the number of operations supported by the neural network processing architecture over a period of time, based on the number E of depth cycles in which a portion of the input is provided and processed in parallel, the number T of taps (e.g., 8 taps as shown in FIG. 6) can be determined (e.g., calculated or selected). For example, when E = total depth cycles D / number of taps T, if E > T + 2, there may be little or no adverse impact on the processing power of the neural network processing architecture (e.g., there are few or no unused processing elements). If E < T + 2, dummy cycles can be added to minimize the adverse impact on the number of operations supported by the neural network processing architecture over a period of time.

[0051] 7 is a block diagram of an example circuit for deep-parallel processing of input portions according to certain aspects of the disclosure. The example circuit of FIG. 7 includes a more detailed version of the processing element 512 of FIG. 5. As shown in FIG. 7, a processing element group 510 of a neural network processing circuit configured to simultaneously process multiple depths of the input portion may include multiple processing elements 512 and a global accumulator circuit 520. The neural network processing circuit may include multiple processing element groups 510, and each processing element group 510 in the neural network processing circuit may be configured to process a different portion of the input at multiple depths.

[0052] Each processing element 512 generally includes a multiply-accumulate (MAC) circuit 516 (e.g., a MAC adder tree) and a local accumulator 518, as shown. Generally, the MAC circuit 516 may generate a result of a mathematical operation for a given input and output the result of the mathematical operation to the local accumulator 518. The output of the local accumulator 518 may be provided as an input to a selection circuit 712 along with a value stored in a corresponding tap register 514. The selection circuit 712 may be, for example, a multiplexer circuit (e.g., a 2:1 multiplexer in which one of two values ​​input to the multiplexer is output based on the value of a selector control signal), a three-state buffer, a number of switches, or other circuitry that allows either an output value 716 from the local accumulator 518 or an output value 718 from the tap register 514 to be selected to be output to an input of the tap register 514. In general, when the local accumulator 518 finishes calculating the final accumulation result at the end of E depth cycles (e.g., after E depth cycles have been processed), the selector control signal may control the selection circuit 712 to select the output of the local accumulator 518 as the input to the tap register 514. That is, the selector control signal may be high if the number of depth cycles has reached E. Otherwise, the selection circuit 712 may select the current value of the tap register 514 as the input to the tap register 514 to preserve the data currently stored in the tap register.

[0053] In some processing elements 512, the second selection circuit 714 can be used to affect the value stored in the tap register 514. The second selection circuit 714 can be used, for example, in processing elements subsequent to the first processing element used for the input in the first depth cycle. That is, for an input in the first depth cycle processed by the first processing element 512A, the subsequent processing elements 512B and 512C (and other processing elements subsequent to processing element 512A) can use their respective second selection circuit 714 to affect the value stored in their respective tap register 514. Similar to the selection circuit 712, the second selection circuit 714 can be implemented, for example, by a multiplexer circuit (e.g., a 2:1 multiplexer in which one of two values ​​input to the multiplexer is output based on the value of a selector input), a three-state buffer, multiple switches, or other circuitry that allows one of multiple values ​​to be selected. A control signal, such as a signal to shift out the value of tap register 514 over a number of depth cycles equal to the number of taps, T, may be used to control the value stored in tap register 514. The value selected by second selection circuit 714 may be the current value of tap register 514 or the value of tap register 514 in a previous processing element (e.g., as shown, in processing element 512B, the output of tap register 514A of processing element 512A). Thus, for processing elements 512B and 512C, tap register 514B (and tap register 514C) may have a first input coupled to the output of selection circuit 712B (and selection circuit 712C) and a second input coupled to the output of second selection circuit 714B (and selection circuit 714C).

[0054] The global accumulator circuit 520 includes a selection circuit 722 and a global accumulator 724. The selection circuit 722 may take as inputs the current value in the global accumulator 724 and the output of the tap register 514 associated with the last processing element used to process the input at a defined number of depths (e.g., as shown, the tap register 514C associated with processing element 512C). A selector input to the selection circuit 722 may be used to set the value of the global accumulator 724 such that the value stored in the global accumulator 724 accumulates over a number of depth cycles. In general, after E cycles have been processed (e.g., at depth cycle E+1), the value stored in the global accumulator 724 may be output to the bus 530 and the global accumulator circuit 520 may be reset.

[0055] The bus 530 is generally coupled to the outputs of one or more tap registers 514 associated with one or more processing elements 512 and to the output of a global accumulator 724 in the accumulator circuit 520. In general, the bus 530 can arbitrate data requests from and data dispatches to the digital post-processing logic 540. For example, the bus 530 can select which outputs to make available to the digital post-processing logic 540 based on a tiling defined for a neural network executed on the neural network processing circuit. Thus, values ​​made available to the digital post-processing logic 540 via the bus 530 can include one or more of a value output by a processing element 512, an output output by multiple processing elements 512, and / or a value stored in the global accumulator 724 and output to the bus 530.

[0056] FIG. 8 illustrates an example 800 of the use of processing elements in a neural network processing architecture in which different depths of portions of the input are processed in parallel. As illustrated, multiple computing units can be aggregated to support processing of portions of the input at multiple depths. In this example, for a computing unit that supports 64 input portions, two computing units can be aggregated to form a virtual computing unit that supports 128 inputs. Each processing element can process the input using four activations and 32 filter channels. As illustrated, 25 portions of the input (e.g., 25 different segments of an image) may be processed in parallel at four different depths (e.g., based on a layer of ResNet50 having an input tensor of size 7×7×512 and a number of corresponding kernel tensors of size 3×3×512, convolving 25 different fields). Because the input portions can be processed in parallel at different depths of the neural network, a significantly smaller number of processing element circuits can go unused compared to the number of unused processing element circuits shown in FIG. 4. In this example, a problem to be processed using the neural network processing architecture described herein, in which different depths of inputs can be processed in parallel, can be defined according to the parameters discussed above with respect to FIG. 4 (e.g., Depth=512, Input X=7, Input Y=7, Filter X=3, Filter Y=3, Stride X=1, and Stride Y=1). The number of clock cycles in which a problem is processed depends on the number of filter Xs. * Filter Y * Depth / Activation=3 * 3 * This can be defined as 512 / 4 / 5=231 cycles, or approximately 20% of the number of cycles used in the depth sequential processing discussed above. The utilization efficiency compared to the maximum theoretical utilization is (32 * 50 * 4 * 32) / (32 * 64 * 4 *32)=78%. Moreover, the number of operations per second may be significantly increased as compared to the number of operations per second that may be performed in depth-sequential processing of inputs through a neural processing architecture operating at the same clock rate. Thus, as shown, by processing inputs using depth-parallel processing, fewer computing resources may be wasted and the overall performance of the neural processing architecture may be improved over the performance of a neural processing architecture that processes inputs using depth-sequential processing.

[0057] Example Operation 9 is a flow diagram illustrating example operations 900 for neural network processing in accordance with certain aspects of the present disclosure. The operations 900 may be performed by a neural network processing circuit, such as, for example, the neural network processing architecture 500 of FIG. 5 or FIG. 7.

[0058] The operations 900 may begin by receiving an input for processing, at block 910. The input may be a multidimensional array of data, or a multidimensional tensor, that may be segmented for parallel processing in a neural network.

[0059] In some aspects, the input may include data corresponding to a three-dimensional space. A first dimension in the three-dimensional space may correspond to a horizontal dimension. A second dimension in the three-dimensional space may correspond to a vertical dimension. A third dimension in the three-dimensional space may correspond to a depth dimension. For example, the three-dimensional space may be a Euclidean space in which data is represented in terms of height, width, and depth dimensions, such as data from a three-dimensional image of an object. In another embodiment, the three-dimensional space may include spatial data on a two-dimensional plane, with the third dimension corresponding to a time channel in the input. This three-dimensional data may include, for example, video data, audio data, or other information in which time is one dimension.

[0060] In some aspects, the input may include multiple segments. For example, the segments may be sized such that the same portion of the input may be processed in parallel or substantially parallel at different depths of the neural network. Each segment of the multiple segments may be the same block of pixels (e.g., in terms of horizontal and vertical coordinates) in different images, for example, corresponding to different depths in a three-dimensional image, or different timestamps in the temporal data (e.g., different frames in a video). In some aspects, the multiple segments may be based on a tiling, which is used to define how the neural network should process the input. Each segment of the multiple segments may represent a sub-portion or tile of the input, and its size may be defined by the number of tiles into which the input is divided. For example, for a number of tiles i, an image input having X pixels on the horizontal axis and Y pixels on the vertical axis may be divided into (X * The input image can be divided into tiles of size y / i pixels.

[0061] For a segment of the multiple segments of the input, intermediate outputs are generated substantially in parallel at each of multiple depths in the neural network at block 920. The intermediate outputs may be generated based on weights in the neural network that are associated with a filter or kernel used to process a portion of the input at a given depth in the neural network.

[0062] In some aspects, generating the intermediate output may include generating the intermediate output through a multiply-accumulate (MAC) circuit. A value generated by the MAC circuit may be stored in a tap register. In some aspects, generating the intermediate output may further include shifting a value in the tap register during each of a plurality of processing cycles.

[0063] At block 930, for that segment of the multiple segments of the input, each intermediate output is accumulated into a final output. In some aspects, accumulating the intermediate outputs into a final output may include accumulating shifted values ​​from a tap register associated with each of the respective values ​​over multiple processing cycles. As discussed, the multiple processing cycles may correspond to the number of depths being parallel processed within the neural processing unit.

[0064] At least the final output is output to the memory bus at block 940. In some aspects, the final output may be output to the memory bus based on a signal indicating that processing is complete for a threshold number of depth cycles. By outputting the final output to the memory bus based on this signal, incomplete data may not be placed on the bus.

[0065] As discussed, the memory bus can be a selective bus that allows selective dispatch or availability of data to a digital post-processing block for further use. In some aspects, each intermediate output may also be output to the memory bus. The memory bus can selectively make values ​​available to the digital post-processing block based on information about how the inputs are tiled for processing in the neural network, for example.

[0066] Exemplary Devices Using Depth Parallelism 10 illustrates an example electronic device 1000. The electronic device 1000 may be configured to perform the methods described herein, including the operations 900 described with respect to FIG.

[0067] The electronic device 1000 includes a central processing unit (CPU) 1002, which in some aspects may be a multi-core CPU. Instructions executed in the CPU 1002 may be loaded from a program memory associated with the CPU 1002, for example, or may be loaded from a memory 1024.

[0068] The electronic device 1000 also includes additional processing blocks adapted to specific functions, such as a graphics processing unit (GPU) 1004, a digital signal processor (DSP) 1006, a neural network circuit 1007 with a set of PEs 1009 for performing depth-parallel processing of inputs to the neural network circuit, a multimedia processing block 1010, and a wireless connectivity processing block 1012. In one implementation, the neural network circuit 1007 is implemented in one or more of the CPU 1002, the GPU 1004, and / or the DSP 1006.

[0069] In some aspects, the wireless connection processing block 1012 may include components related to, for example, third generation (3G) connectivity, fourth generation (4G) connectivity (e.g., 4G LTE), fifth generation connectivity (e.g., 5G or NR), Wi-Fi connectivity, Bluetooth connectivity, and / or wireless data transmission standards. The wireless connection processing block 1012 is further connected to one or more antennas 1014 to facilitate wireless communication.

[0070] The electronic device 1000 may also include one or more sensor processors 1016 associated with any type of sensor, one or more image signal processors (ISPs) 1018 associated with any type of image sensor, and / or a navigation processor 1020, which may include satellite-based positioning system components (e.g., Global Positioning System (GPS) or Global Navigation Satellite System (GLONASS)), and inertial positioning system components.

[0071] Electronic device 1000 may also include one or more input and / or output devices 1022, such as a screen, a touch-sensitive surface (including a touch-sensitive display), physical buttons, a speaker, a microphone, etc. In some aspects, one or more of the processors of electronic device 1000 may be based on the Advanced RISC Machine (ARM) instruction set, where RISC stands for "reduced instruction set computing."

[0072] Electronic device 1000 also includes memory 1024, which represents one or more static and / or dynamic memories, such as dynamic random access memory (DRAM), flash-based static memory, etc. In this example, memory 1024 includes computer-executable components that may be executed by one or more of the aforementioned processors of electronic device 1000, including neural network circuitry 1007. The illustrated components, and other components not illustrated, may be configured to perform various aspects of the methods described herein.

[0073] In some aspects, such as when the electronic device 1000 is a server device, various aspects, such as one or more of the multimedia processing block 1010, the wireless connection processing block 1012, the antenna 1014, the sensor processor 1016, the ISP 1018, or the navigation processor 1020, may be omitted from the embodiment shown in FIG. 10.

[0074] Illustrative clauses In addition to the various aspects described above, specific combinations of aspects are within the scope of the present disclosure, some of which are detailed in the following sections.

[0075] Clause 1: A processing circuit including multiple groups of processing element (PE) circuits, each group of PE circuits configured to process inputs in parallel at multiple depths, the processing circuit including a plurality of PE circuits, each group of PE circuits configured to calculate a partial product, and a local accumulator having an input coupled to an output of the one or more multiplier circuits, the local accumulator configured to generate a sum from the partial products generated by each of the one or more multiplier circuits.

[0076] Clause 2: The processing circuit of clause 1, wherein each PE circuit further includes a register having an input coupled to the output of the local accumulator.

[0077] Clause 3: The processing circuit of clause 2, further comprising a plurality of global accumulators, the output of a register in each PE circuit being coupled to an input of another register in another PE circuit in the group of PE circuits or to an input of one of the global accumulators.

[0078] Clause 4: The processing circuit of clause 3, further comprising a bus, wherein another output of the register in each PE circuit is coupled to the bus.

[0079] Clause 5: The processing circuit of clause 4, wherein an output of each of the global accumulators is further coupled to a bus.

[0080] Clause 6: The processing circuit of any of clauses 2 to 5, wherein each PE circuit further includes a first selection circuit having a first input coupled to the output of the local accumulator and having an output coupled to the input of the register.

[0081] Clause 7: The processing circuit of clause 6, wherein the first selection circuit in each PE circuit has a second input coupled to the output of the register.

[0082] Clause 8: The processing circuit of clause 7, wherein the first selection circuit comprises a 2:1 multiplexer, a three-state buffer, or a plurality of switches.

[0083] Clause 9: The processing circuit of any one of clauses 6 to 8, wherein at least some of the PE circuits in each group of PE circuits further include a second selection circuit having an output coupled to an input of the register, having a first input coupled to the output of the register, and having a second input coupled to an output of another register in another PE circuit in the group of PE circuits.

[0084] Clause 10: The processing circuit of clause 9, wherein the second selection circuit includes a 2:1 multiplexer, a three-state buffer, or a plurality of switches.

[0085] Clause 11: The processing circuit of any of clauses 1 to 10, further comprising a plurality of global accumulators, each global accumulator having an input coupled to an output of one of the groups of PE circuits.

[0086] Clause 12: The processing circuit of any of clauses 1 to 11, wherein the multiple PE circuits are further configured to process multiple depths of multiple inputs in parallel.

[0087] Clause 13: A method of neural network processing, comprising: receiving an input for processing; for each segment of a plurality of segments of the received input, generating substantially in parallel intermediate outputs for each depth of a plurality of depths in the neural network based on weights in the neural network associated with the respective depth in the neural network; accumulating the intermediate outputs for each respective depth into a final output; and outputting the final output to a memory bus.

[0088] Clause 14: The method of clause 13, wherein the input includes data from a three dimensional space, a first dimension in the three dimensional space corresponds to a horizontal dimension, a second dimension in the three dimensional space corresponds to a vertical dimension, and a third dimension in the three dimensional space corresponds to a depth dimension.

[0089] Clause 15: The method of clause 14, wherein the data from the three-dimensional space includes video data, and the depth dimension corresponds to a time channel in the video data.

[0090] Clause 16: Any of the methods of clauses 13-15, wherein generating an intermediate output for each depth in the neural network includes generating the intermediate output through a multiply-accumulate (MAC) circuit and storing a value of the MAC circuit in a tap register.

[0091] Clause 17: The method of clause 16, wherein generating an intermediate output for each depth in the neural network further comprises shifting a value in a tap register during each of a plurality of processing cycles.

[0092] Clause 18: The method of any of clauses 13-17, wherein accumulating the intermediate outputs for each respective depth into a final output includes accumulating shifted values ​​associated with each of the respective depths over a plurality of processing cycles, the shifted values ​​being stored in one or more tap registers.

[0093] Clause 19: The method of any of clauses 13-18, wherein outputting the final output to the memory bus includes outputting each intermediate output to the memory bus.

[0094] Clause 20: The method of any of clauses 13-19, wherein outputting the final output to the memory bus is based on a signal indicating that processing is complete for a threshold number of depth cycles.

[0095] Clause 21: An apparatus comprising: a memory bus; a digital post-processing block; and a processor configured to perform any of the operations of clauses 13 to 20.

[0096] Clause 22: An apparatus comprising means for performing any of the operations of clauses 13 to 20.

[0097] Additional Considerations The foregoing description is provided to enable any person skilled in the art to practice the various aspects described herein. The embodiments discussed herein are not intended to limit the scope, applicability, or aspects described in the claims. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects. For example, changes may be made in the function and arrangement of the elements discussed without departing from the scope of the disclosure. Various embodiments may omit, substitute, or add various procedures or components as appropriate. For example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Also, features described with respect to some embodiments may be combined in some other embodiments. For example, an apparatus may be implemented or a method may be practiced using any number of the aspects described herein. Furthermore, the scope of the disclosure is intended to encompass apparatuses or methods that are practiced using other structures, functions, or structures and functions in addition to or other than the various aspects of the disclosure described herein. It should be understood that any aspect of the disclosure disclosed herein may be embodied by one or more elements of a claim.

[0098] As used herein, the word "exemplary" means "serving as an example, instance, or illustration." Any aspect described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other aspects.

[0099] As used herein, a phrase referring to "at least one of" a list of items refers to any combination of those items, including single elements. By way of example, "at least one of a, b, or c" is intended to encompass a, b, c, ab, ac, bc, and abc, as well as any combination having multiples of the same elements (e.g., aa, aaa, aab, aac, abb, acc, bb, bbb, bbc, cc, and ccc, or any other permutation of a, b, and c).

[0100] As used herein, the term "determining" encompasses a wide variety of actions. For example, "determining" may include calculating, computing, processing, deriving, investigating, searching (e.g., searching a table, database, or another data structure), ascertaining, and the like. "Determining" may also include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory), and the like. "Determining" may also include resolving, selecting, choosing, establishing, and the like.

[0101] The methods disclosed herein include one or more steps or actions for achieving the method. The steps and / or actions of those methods may be interchanged with one another without departing from the scope of the claims. In other words, unless a specific order of steps or actions is specified, the order and / or use of specific steps and / or actions may be modified without departing from the scope of the claims. Furthermore, various operations of the methods described above may be performed by any suitable means capable of performing the corresponding functions. Those means may include various hardware and / or software components, including, but not limited to, circuits, application specific integrated circuits (ASICs), or processors, and / or various hardware and / or software modules. In general, when operations are illustrated in a figure, those operations may have corresponding equivalent means-plus-function components similarly numbered. Exemplary means-plus-function components may include means for receiving, means for generating, means for accumulating, and means for outputting, among others. The means for receiving may include, among other things, an input / output block, such as the input / output block 1012 shown in FIG. 10, a wireless communication block (e.g., a transceiver), such as the wireless communication block 1012 shown in FIG. 10. The means for generating may include one or more processors or processing circuits, such as the neural network circuit 1007 and / or the processing element 1009 shown in FIG. 10. The means for accumulating may include one or more processors or processing circuits, such as the neural network circuit 1007 and / or the processing element 1009 depicted in FIG. 10. The means for outputting may include, among other things, an input / output block, such as the input / output block 1012 shown in FIG. 10, a wireless communication block (e.g., a transceiver), such as the wireless communication block 1012 shown in FIG. 10.

[0102] The following claims are not intended to be limited to the embodiments set forth herein, but are to be accorded the full scope consistent with the language of the claims. Within the claims, reference to an element in the singular is not intended to mean "only one" unless expressly stated as such, but rather "one or more." Unless otherwise expressly stated, the term "several" refers to one or more. No element of a claim is to be construed under the provisions of 35 U.S.C. 112(f) unless the element is expressly recited using the phrase "means for" or, in the case of a method claim, unless the element is recited using the phrase "step for." All structural and functional equivalents to the elements of the various embodiments described throughout this disclosure that are known or later become known to those of skill in the art are expressly incorporated herein by reference and are intended to be encompassed by the claims. Furthermore, nothing disclosed herein is intended to be made public, regardless of whether such disclosure is expressly recited in the claims.

Claims

1. 1. A processing circuit comprising a plurality of groups of processing element (PE) circuits, Each group of PE circuits includes a plurality of PE circuits configured to process inputs in parallel at a plurality of depths; Each PE circuit is one or more multiplication circuits, each multiplication circuit configured to produce a partial product; a local accumulator having an input coupled to an output of the one or more multiplier circuits, the local accumulator being configured to generate a sum from the partial products calculated by each of the one or more multiplier circuits.

2. Each PE circuit is 2. The processing circuit of claim 1, further comprising a register having an input coupled to the output of the local accumulator.

3. 3. The processing circuit of claim 2, further comprising a plurality of global accumulators, the output of the register in each PE circuit being coupled to the input of another register in another PE circuit in the group of PE circuits or to an input of one of the global accumulators.

4. 4. The processing circuit of claim 3, further comprising a bus, another output of the register in each PE circuit being coupled to the bus.

5. 5. The processing circuit of claim 4, wherein an output of each of the global accumulators is further coupled to the bus.

6. 3. The processing circuit of claim 2, wherein each PE circuit further comprises a first selection circuit having a first input coupled to the output of the local accumulator and having an output coupled to the input of the register.

7. 7. The processing circuit of claim 6, wherein the first selection circuit in each PE circuit has a second input coupled to an output of the register.

8. The processing circuit of claim 7 , wherein the first selection circuit comprises a 2:1 multiplexer, a three-state buffer, or a plurality of switches.

9. 7. The processing circuit of claim 6, further comprising a second selection circuit, at least some of the PE circuits in each group of PE circuits having an output coupled to the input of the register, having a first input coupled to the output of the register, and having a second input coupled to an output of another register in another PE circuit in the group of PE circuits.

10. The processing circuit of claim 9 , wherein the second selection circuit comprises a 2:1 multiplexer, a three-state buffer, or a plurality of switches.

11. 2. The processing circuit of claim 1, further comprising a plurality of global accumulators, each global accumulator having an input coupled to an output of one of the groups of PE circuits.

12. The processing circuit of claim 1 , wherein the plurality of PE circuits are further configured to process multiple inputs in parallel at multiple depths.

13. 1. A method of neural network processing, comprising: Receiving input for processing; For each segment of the plurality of segments of the received input, generating, in a substantially parallel manner, a respective intermediate output for each of a plurality of depths in a neural network based on a weight in the neural network associated with the respective depth in the neural network; accumulating the intermediate outputs for each respective depth into a final output; outputting the final output to a memory bus.

14. the input includes data from a three-dimensional space; a first dimension in the three-dimensional space corresponds to a horizontal dimension; a second dimension in the three-dimensional space corresponds to a vertical dimension; The third dimension in the three-dimensional space corresponds to a depth dimension. The method of claim 13.

15. the data from the three dimensional space includes video data; the depth dimension corresponds to a time channel in the video data; The method of claim 14.

16. generating the intermediate outputs for each of the depths in the neural network; generating the intermediate output through a multiply-accumulate (MAC) circuit; and storing the MAC circuit value in a tap register.

17. 17. The method of claim 16, wherein generating the intermediate output for the respective depths in the neural network further comprises shifting the value in the tap register during each of a plurality of processing cycles.

18. 14. The method of claim 13, wherein accumulating the intermediate outputs for each respective depth into the final output comprises accumulating shifted values ​​associated with each of the respective depths over multiple processing cycles that are stored in one or more tap registers.

19. 14. The method of claim 13, wherein outputting the final output to the memory bus comprises outputting each intermediate output to the memory bus.

20. 14. The method of claim 13, wherein outputting the final output to the memory bus is based on a signal indicating processing is complete for a threshold number of depth cycles.

21. 1. An apparatus comprising: A memory bus; 1. A processor comprising: Receives input for processing; For each segment of the plurality of segments of the received input, generating, in a substantially parallel manner, respective intermediate outputs for each of a plurality of depths in a neural network based on weights in the neural network associated with the respective depths in the neural network; accumulating said intermediate outputs for each respective depth into a final output; a processor configured to output the final output to the memory bus; a digital post-processing block configured to retrieve the final output from the memory bus and perform one or more operations based on the final output.

22. the input includes data from a three-dimensional space; a first dimension in the three-dimensional space corresponds to a horizontal dimension; a second dimension in the three-dimensional space corresponds to a vertical dimension; The third dimension in the three-dimensional space corresponds to a depth dimension.

22. The apparatus of claim 21.

23. the data from the three dimensional space includes video data; the depth dimension corresponds to a time channel in the video data; 23. The apparatus of claim 22.

24. To generate the intermediate outputs for each depth in the neural network, the processor: generating said intermediate output through a multiply-accumulate (MAC) circuit; 22. The apparatus of claim 21, configured to store the MAC circuit value in a tap register.

25. 25. The apparatus of claim 24, wherein the processor is further configured to shift the value in the tap register during each of a plurality of processing cycles to generate the intermediate output for the respective depth in the neural network.

26. 22. The apparatus of claim 21, wherein to accumulate the intermediate outputs for each respective depth into the final output, the processor is configured to accumulate shifted values ​​associated with each of the respective depths over a number of processing cycles that are stored in one or more tap registers.

27. 22. The apparatus of claim 21, wherein the processor is configured to output, for each intermediate output value, to the memory bus to output the final output to the memory bus.

28. 22. The apparatus of claim 21, wherein the processor is configured to output the final output to the memory bus based on a signal indicating that processing is complete for a threshold number of depth cycles.

29. 1. An apparatus comprising: means for receiving input for processing; means for generating, for each segment of the plurality of segments of the received input, substantially in parallel, an intermediate output for a respective depth of a plurality of depths in a neural network based on a weight in the neural network associated with the respective depth in the neural network; means for accumulating, for each segment of the plurality of segments of the received input, the intermediate outputs for each respective depth into a final output; means for each segment of the plurality of segments of the received input, outputting the final output onto a memory bus.

Citation Information

Patent Citations

  • Arithmetic system and arithmetic method for neural network

    JP2018116469A

  • Prefetching weights used by neural network processors

    JP2018521374A

  • Vector Calculation Unit

    JP2020529070A

  • Neural network accelerator with on-chip resident parameters

    JP2020532780A