Reducing power consumption in a neural network processor by skipping processing operations
11341399 · 2022-05-24
Assignee
Inventors
- Amol Ashok Ambardekar (Redmond, WA)
- Chad Balling McBride (North Bend, WA)
- George Petre (Redmond, WA)
- Larry Marvin Wall (Seattle, WA)
- Kent D. Cedola (Bellevue, WA)
- Boris Bobrov (Kirkland, WA)
Cpc classification
G06F3/0604
PHYSICS
G06F9/3858
PHYSICS
G06N3/06
PHYSICS
G06F1/3206
PHYSICS
H03M7/3059
ELECTRICITY
Y02D30/50
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G06N3/049
PHYSICS
G06F13/28
PHYSICS
G06N3/10
PHYSICS
G06F12/08
PHYSICS
H03M7/46
ELECTRICITY
G06F1/3287
PHYSICS
G06F9/3887
PHYSICS
H04L67/02
ELECTRICITY
G06F17/15
PHYSICS
G06F9/5077
PHYSICS
G06F3/067
PHYSICS
G06F12/0238
PHYSICS
G06F9/3836
PHYSICS
G06F9/4881
PHYSICS
H03M7/70
ELECTRICITY
Y02D10/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G06F2212/6026
PHYSICS
H04L45/50
ELECTRICITY
H04L67/1001
ELECTRICITY
International classification
H04L67/1001
ELECTRICITY
G06F9/30
PHYSICS
G06F13/28
PHYSICS
H03M7/30
ELECTRICITY
H04L45/00
ELECTRICITY
H04L67/02
ELECTRICITY
G06N3/06
PHYSICS
G06N3/10
PHYSICS
G06F9/38
PHYSICS
G06F12/08
PHYSICS
G06F15/80
PHYSICS
Abstract
A deep neural network (“DNN”) module can determine whether processing of certain values in an input buffer or a weight buffer by neurons can be skipped. For example, the DNN module might determine whether neurons can skip the processing of values in entire columns of a neuron buffer. Processing of these values might be skipped if an entire column of an input buffer or a weight buffer are zeros, for example. The DNN module can also determine whether processing of single values in rows of the input buffer or the weight buffer can be skipped (e.g. if the values are zero). Neurons that complete their processing early as a result of skipping operations can assist other neurons with their processing. A combination operation can be performed following the completion of processing that transfers the results of the processing operations performed by a neuron to their correct owner.
Claims
1. A neural network module, comprising: a plurality of neurons; a group partitioner and scheduler; and a memory device storing a first buffer storing first data for processing by the plurality of neurons in the neural network module, and a second buffer storing second data for processing by the plurality of neurons in the neural network module, wherein the first data in the first buffer and the second data in the second buffer are organized into corresponding rows and columns, wherein the plurality of neurons are configured to process the first data and the second data synchronously whereby one or more of the columns are selected for processing per clock cycle, and wherein the group partitioner and scheduler is configured to determine whether the first data in an entire column of the first buffer comprises a predetermined value or range of values, cause the plurality of neurons to skip processing of the first data and the second data if the first data in the entire column of the first buffer comprises the predetermined value or range of values, determine whether the second data in an entire column of the second buffer comprises the predetermined value or range of values, and cause the plurality of neurons to skip processing of the first data and the second data if the second data in the entire column of the second buffer comprises the predetermined value or range of values.
2. The neural network module of claim 1, wherein the predetermined value comprises zero, a range of values, or values above or below a threshold value.
3. The neural network module of claim 1, wherein the first data in the first buffer comprises input data to a neural network.
4. The neural network module of claim 1, wherein the second data in the second buffer comprise weights associated with a neural network.
5. The neural network module of claim 1, wherein the plurality of neurons use ReLu (y=max(x,0)) as an activation function for a neural network.
6. The neural network module of claim 1, wherein the predetermined value or range of values is user-definable.
7. A neural network module, comprising: a plurality of neurons; a group partitioner and scheduler; and a memory device storing a first buffer storing first data for processing by the plurality of neurons in the neural network module, the first data comprising input data to a neural network, a second buffer storing second data for processing by the plurality of neurons in the neural network module, the second data comprising weight data for the neural network, wherein the first data in the first buffer and the second data in the second buffer are organized into corresponding rows and columns, wherein the plurality of neurons are configured to process the first data and the second data synchronously, whereby one or more of the columns are selected for processing per clock cycle, and wherein the group partitioner and scheduler is configured to determine whether the first data in an entire column of the first buffer comprises a predetermined value or range of values, skip processing of the first data in the first buffer if the first data in the entire column of the first buffer comprises the predetermined value or range of values, determine whether the second data in an entire column of the second buffer comprises the predetermined value or range of values, and skip processing of the second data in the second buffer if the second data in the entire column of the second buffer comprises the predetermined value or range of values.
8. The neural network module of claim 7, wherein the predetermined value comprises zero, a range of values, or values above or below a threshold value.
9. The neural network module of claim 7, wherein the plurality of neurons use ReLu (y=max(x,0)) as an activation function for a neural network.
10. The neural network module of claim 7, wherein the predetermined value or range of values is user-definable.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION
(9) The following detailed description is directed to a neural network module, or processor, that can reduce power consumption by skipping certain types of processing operations. In particular, the disclosed technologies enable a neural network processor to skip certain types of arithmetic operations performed on input data and weight data, thereby improving throughput and saving power. Other technical benefits not specifically mentioned herein can also be realized through implementations of the disclosed subject matter.
(10) While the subject matter described herein is presented in the general context of a hardware DNN module, those skilled in the art will recognize that other implementations can be performed in combination with other types of computing systems and modules. Those skilled in the art will also appreciate that the subject matter described herein can be practiced with other computer system configurations, including hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, computing or processing systems embedded in devices (such as wearable computing devices, automobiles, home automation etc.), minicomputers, mainframe computers, and the like.
(11) In the following detailed description, references are made to the accompanying drawings that form a part hereof, and which are shown by way of illustration specific configurations or examples. Referring now to the drawings, in which like numerals represent like elements throughout the several FIGS., aspects of a neural network module, or processor, that can reduce power consumption by skipping certain types of processing operations will be described.
(12)
(13) In order to provide this functionality, the DNN module 105 can implement a recall-only neural network and programmatically support a wide variety of network structures. Training for the network implemented by the DNN module 105 can be performed offline in a server farm, data center, or another suitable computing environment. The result of training a DNN is a set of parameters that can be known as “weights” or “kernels.” These parameters represent a transform function that can be applied to an input with the result being a classification or semantically labeled output.
(14) The DNN module 105 disclosed herein can be considered a superscalar processor. The DNN module 105 can dispatch one or more instructions to multiple execution units, called neurons 105F. The execution units can be “simultaneous dispatch simultaneous complete,” where each execution unit is synchronized with each of the other execution units. The DNN module 105 can be classified as a single instruction stream, multiple data stream (“SIMD”) architecture.
(15) The DNN module 105 includes a number of neurons 105F (e.g. a power of two). A neuron 105F is the base unit in artificial neural networks that is used to model a biological neuron in the brain. The model of a neuron 105F can include the inner product of an input vector with a weight vector added to a bias, with a non-linearity applied. The processing performed by a neuron 105F in the DNN module 105 described herein is closely mapped to an artificial neuron.
(16) Each neuron 105F in the DNN module 105 is capable of performing weighted sum, max pooling, bypass, and potentially other types of operations. The neurons 105F process input and weight data every clock cycle. Each neuron 105F is synchronized to all other neurons 105F in terms of progress within a kernel to minimize the flow of kernel data within the DNN module 105.
(17) Each neuron 105F can contain a multiplier, an adder, a comparator, and a number of accumulators (not shown in
(18) The DNN module 105 accepts planar data as input, such as image data. Input to the DNN module 105 is not, however, limited to image data. Rather, the DNN module 105 can operate on any input data presented to the DNN module 105 in a uniform planar format. In one particular embodiment, the DNN module 105 can accept as input multi-planar one-byte or two-byte data frames.
(19) Each input frame can be convolved with an N×K×H×W set of kernels, where N is the number of kernels, K is the number of channels per kernel, H is the height, and W is the width. Convolution is performed on overlapping intervals across the input data where the interval is defined by strides in the X and Y directions. These functions are performed by the neurons 105F and managed by the DNN module 105 and software-visible control registers.
(20) The DNN module 105 supports three main data types: weights; input data/feature maps; and activation data. Input data/feature maps and activation data are, in most cases, two names for the same data with the distinction that when referring to an output of a layer the term activation data is used. When referring to the input of a layer the term input data/feature map is used.
(21) The neurons 105F in the DNN module 105 compute a weighted sum of their inputs and pass the weighted sum through an “activation function” or “transfer function.” The transfer function commonly has a sigmoid shape but might also take on the form of a piecewise linear function, step function, or another type of function. The activation function allows the neurons 105F to train to a larger set of inputs and desired outputs where classification boundaries are non-linear.
(22) The DNN module 105 operates on a list of layer descriptors which correspond to the layers of a neural network. The list of layer descriptors can be treated by the DNN module 105 as instructions. These descriptors can be pre-fetched from memory into the DNN module 105 and executed in order. The descriptor list acts as a set of instructions to the DNN module 105. Software tools and/or compilers can be executed on devices external to the DNN module 105 to create the descriptor lists that are executed on the DNN module 105.
(23) Generally, there can be two main classes of descriptors: memory-to-memory move (“M2M”) descriptors; and operation descriptors. M2M descriptors can be used to move data to/from the main memory to/from a local buffer (i.e. the line buffer 125 described below) for consumption by the operation descriptors. M2M descriptors follow a different execution pipeline than the operation descriptors. The target pipeline for M2M descriptors can be the internal DMA engine 105B or the configuration registers 105G, whereas the target pipeline for the operation descriptors can be the neurons 105F.
(24) Operational descriptors specify a specific operation that the neurons 105F should perform on a data structure located in local static random access memory (“SRAM”) memory. The operational descriptors are processed in order and are capable of many different layer operations, at least some of which are described herein.
(25) As illustrated in
(26) Computational data (i.e. inputs data, weights and activation data) is stored in the BaSRAM 150 row-major in some embodiments. The computational data can be organized as two line buffers, where one line buffer contains input data, which might be referred to herein as the “input buffer,” and the other line buffer, which might be referred to herein as the “weight buffer,” contains kernel weights. The line buffers are filled from the BaSRAM 150 by the load/store unit 105C. Data is accumulated in each line buffer until it has reached its predetermined capacity. The line buffer data is then copied to a shadow buffer in some embodiments and presented to the neurons 105F.
(27) The DNN module 105 can also comprise a number of other components including, but not limited to, a register interface 105G, a prefetch unit 105A, a save/restore unit 105E, a layer controller 105D, and a register interface 105G. The DNN module 105 can include additional or alternate components in some embodiments.
(28) The DNN module 105 operates in conjunction with other external computing components in some configurations. For example, the DNN module 105 is connected to a host application processor system on chip (“the host SoC”) 130 in some embodiments. The DNN module 105 can be connected to the host SoC 130 through a PCIe interface, for example. Appropriate PCIe components, such as the PCIe endpoint 135 can be utilized to enable these connections.
(29) The Host SoC 130 serves as the application processor for the DNN module 105. The main operating system, application, and auxiliary sensor processing are performed by the host SoC 130. The host SoC 130 can also be connected to an input data source 102, such as an external camera, that provides input data, such as image data, to the DNN module 105.
(30) DDR DRAM 155 can also be connected to the host SoC 130 that can be used as the main system memory. This memory is accessible from the host SoC 130 across the high bandwidth fabric 120 (e.g. PCIe bus) by way of a memory controller 145. The high bandwidth fabric 120 provides bidirectional direct memory access (“DMA”) small messaging transactions and larger DMA transactions. A bridge 115 and low bandwidth fabric 110 can connect the DNN module 105 to the host SoC 130 for sub-module configuration and other functions.
(31) The DNN module 105 can include a DMA engine 105B that is configured to move data to and from main memory 155. The DMA engine 105B has two channels in some embodiments. One channel is dedicated to fetching operation descriptors while the other channel is dedicated to M2M operations. A DMA descriptor can be embedded in the M2M descriptor. Descriptors in this context are DMA descriptors that are used to move the contents of memory, not to be confused with the operation descriptors described above.
(32) To offload the local BaSRAM memory 150, and to provide more space for input data and weight data, the activation output can optionally be streamed directly to DDR memory 155. When streaming data to DDR memory 155, the DNN module 105 will accumulate enough data for a burst transaction on the high bandwidth fabric 120 and will buffer enough transactions to minimize backpressure on the neurons 105F. Additional details regarding the operation of the DNN module 105 will be provided below.
(33)
(34) As illustrated in
(35) Although an input buffer 202 and a weight buffer 204 are illustrated in
(36) In the embodiment illustrated in
(37) In one embodiment there are two copies of each line buffer: a primary copy and a shadow copy. As the memory locations storing the primary copy of the line buffers are being filled, the neurons 105F operate on the shadow copy of the line buffers. Once the memory locations storing the primary copy are filled and the shadow copy of the line buffers is consumed by the neurons 105F, the primary copy data is moved to the shadow copy and the memory locations used to store the primary copy can be filled with the next set of data.
(38) The neurons 105F can process data in the line buffers synchronously or asynchronously in various embodiments disclosed herein. In a synchronous mode of operation, each neuron 105F processes a row from the input buffers, such that one or more columns are selected for processing per clock cycle depending upon the capacity of the neuron. In the synchronous mode of operation, the neurons 105F can be organized into a number of groups equal to the number of neurons 105F.
(39) In an asynchronous mode of operation, a set of neurons 105F work on a set of buffer lines (i.e. rows in the neuron buffer). In order to enable this functionality, a group partitioner and scheduler 206 works to group the buffer lines and present them to each group scheduler 208A and 208B (collectively “the group schedulers 208”). In one embodiment, the group partitioner and scheduler 206 assigns the buffer lines to the group schedulers 208 using a statically assigned (i.e. predetermined) partition pattern. Buffer lines can be assigned to the group schedulers 208 in other ways in other embodiments such as, for example, assigning buffer lines to groups such that each group has a relatively equal workload.
(40) After the buffer lines have been partitioned, the group partitioner and scheduler 206 assigns the buffer lines to a respective group scheduler 208. The group schedulers 208 try to balance the workload within a group of neurons 105F. In the example shown in
(41) An accumulator buffer 210 is also utilized in some embodiments. In these embodiments, a group of accumulators 212 are assigned to each group of neurons 105F. In the example shown in
(42) Each accumulator 212 is capable of being loaded from a read of the BaSRAM 150. Additionally, the accumulators 212 can combine themselves with the contents of other accumulators assigned to other neurons 105F or neuron groups. As discussed above, by having multiple accumulators 212, the neurons 105F can maintain context for multiple different active kernels at a time.
(43) As also described briefly above, artificial neural networks commonly produce sparse activations. This is particularly true in the case of the ReLu activation function (e.g. ReLu (y=max(x,0))), where a disproportionate (up to 80% in some cases) proportion of activations are zero. Also, certain operations like dilated convolution may involve weight matrices (i.e. convolution filters) that are sparse (i.e. contain many zeroes). These activations, in turn, become inputs for the next layer of the neural network. As a result, many layers of an artificial neural network end up performing trivial operations, where the result of the operations is not influenced by these calculations.
(44) The technologies disclosed herein exploit the tendency of artificial neural networks to produce sparse activations to improve the performance of the neurons 105F and, as a result, to reduce the power consumption of the DNN module 105. Several example embodiments are disclosed below with regard to
(45)
(46) The DNN module 105 can also detect whether an entire column of the input buffer 202 or the weight buffer 204 contains only values which, when operated on by the neurons 105F, would not impact the final result. The group partitioner and scheduler 206 performs this function in some embodiments. For instance, the group partitioner and scheduler 206 can determine whether an entire column of the input buffer 202 or the weight buffer 204 contains zeros or any other value (e.g. values close to zero) wherein the resulting operation would not impact the final result. Because operations on these types of values have no impact on the final result, operations on these values can be skipped by the neurons 105F. This mechanism may be referred to herein as “full-column operation skipping” or “column-wise zero skipping.”
(47) In some embodiments, the DNN module 105 can detect whether a column of the input buffer 202 or a column of the weight buffer 204 includes all values less than or equal to than a threshold value (e.g. values less than one) or all values within a range of values (e.g. −5 to 5). The value, threshold value, or range of values for which operations are to be skipped is user-definable in some embodiments, thereby enabling a user to define the operations that are to be skipped by the DNN module 105.
(48) In the example shown in
(49) In the example shown in
(50) Because processing of the values in columns C5 and C7 have been skipped in this example, processing of the data loaded in the neuron buffer finishes two cycles faster than expected. By skipping processing operations in this manner, the DNN module 105 can conserve power that would have otherwise been expended on the skipped processing operations. Several other mechanisms for optimizing the operation of the DNN module 105 by skipping neuron 105F processing operations are described below with reference to
(51)
(52) In an asynchronous neuron implementation, the operation of the DNN module 105 can be modified such that a set of neurons 105F work on a set of buffer lines (i.e. rows in the neuron buffer). In particular, the group partitioner and scheduler 206 can group the buffer lines and present the buffer lines to the group schedulers 208 in the manner described above with regard to
(53) After the buffer lines have been partitioned, they are assigned to a group scheduler 208, which tries to balance the workload within a group in some embodiments. In the example shown in
(54) The decision as to whether a particular column in a particular row needs to be processed can be done on the fly during buffer fill operations and, therefore, can be hidden from subsequent logic (e.g. the neurons 105F). For example, for the first row of the example neuron buffer shown in
(55) For the second row of the example neuron buffer in
(56) In the example shown in
(57) As shown in
(58)
(59) In the example shown in
(60) Because neuron N1 assists neuron N2, a combination operation is performed following the completion of processing that transfers the results of the processing operations performed by neuron N1 to their correct owner (i.e. the neuron N2 in this example) using sideband summation. This is accomplished in one embodiment by configuring the accumulators 212 as part of a shared memory that is accessible from all neurons 105F in a neuron group, where each neuron 104F maintains an array of accumulators 212 equivalent to the number of rows in a neuron group. At the end of the cycle, a row-wise summation can be performed on the partial results to get the final output value for each row. Other mechanisms for transferring the results of processing operations between neurons 105F can be utilized in other embodiments.
(61)
(62) The particular implementation of the technologies disclosed herein is a matter of choice dependent on the performance and other requirements of the computing device. Accordingly, the logical operations described herein are referred to variously as states, operations, structural devices, acts, or modules. These states, operations, structural devices, acts and modules can be implemented in hardware, software, firmware, in special-purpose digital logic, and any combination thereof. It should be appreciated that more or fewer operations can be performed than shown in the FIGS. and described herein. These operations can also be performed in a different order than those described herein.
(63) The routine 600 shown in
(64) If the values in any column of the input buffer 202 or the weight buffer 204 can be skipped, the routine 600 proceeds from operation 606, where the processing operations that would otherwise be performed on those columns by the neurons 105F of the DNN module 105 are skipped. If no columns of the neuron buffer can be skipped, the routine 600 proceeds from operation 604 to operation 608, where the values in all of the columns of the neuron buffer are processed by the neurons 105F. From operations 606 and 608, the routine 600 proceeds back to operation 602, where further processing in the manner described above may be continued.
(65) The routine 632 shown in
(66) If processing of values in the neuron buffer can be skipped, the routine 632 proceeds from operation 636 to operation 638, where processing of those values by the neurons 105F can be skipped. If no values can be skipped, the routine 632 proceeds from operation 636 to operation 640, where all of the values in the neuron buffer are processed by the neurons 105F. From operations 640 and 638, the routine 632 proceeds back to operation 634, where further processing in the manner described above may be continued.
(67) The routine 650 shown in
(68) If no values can be skipped, the routine 650 proceeds from operation 654 to operation 656, where all of the values in the neuron buffer are processed by the neurons 105F. If, however, processing of at least some of the values in the neuron buffer can be skipped, the routine 650 proceeds from operation 654 to operation 658, where processing of those values by the neurons 105F is skipped.
(69) From operation 658, the routine 650 proceeds to operation 660, where neurons that complete their processing early as a result of skipping operations in the manner described are assigned processing operations from other neurons in the manner described above. The routine 650 then proceeds from operation 660 to operation 662, where a combination operation is performed following the completion of processing that transfers the results of the processing operations performed by a neuron 105F to their correct owner using sideband summation or another mechanism. From operations 662 and 656, the routine 650 proceeds back to operation 652, where further processing in the manner described above may be continued.
(70)
(71) The computer 700 illustrated in
(72) The mass storage device 712 is connected to the CPU 702 through a mass storage controller (not shown) connected to the bus 710. The mass storage device 712 and its associated computer readable media provide non-volatile storage for the computer 700. Although the description of computer readable media contained herein refers to a mass storage device, such as a hard disk, CD-ROM drive, DVD-ROM drive, or USB storage key, it should be appreciated by those skilled in the art that computer readable media can be any available computer storage media or communication media that can be accessed by the computer 700.
(73) Communication media includes computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics changed or set in a manner so as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency, infrared and other wireless media. Combinations of the any of the above should also be included within the scope of computer readable media.
(74) By way of example, and not limitation, computer storage media can include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. For example, computer storage media includes, but is not limited to, RAM, ROM, EPROM, EEPROM, flash memory or other solid-state memory technology, CD-ROM, digital versatile disks (“DVD”), HD-DVD, BLU-RAY, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and which can be accessed by the computer 700. For purposes of the claims, the phrase “computer storage medium,” and variations thereof, does not include waves or signals per se or communication media.
(75) According to various configurations, the computer 700 can operate in a networked environment using logical connections to remote computers through a network such as the network 720. The computer 700 can connect to the network 720 through a network interface unit 716 connected to the bus 710. It should be appreciated that the network interface unit 716 can also be utilized to connect to other types of networks and remote computer systems. The computer 700 can also include an input/output controller 718 for receiving and processing input from a number of other devices, including a keyboard, mouse, touch input, an electronic stylus (not shown in
(76) It should be appreciated that the software components described herein, when loaded into the CPU 702 and executed, can transform the CPU 702 and the overall computer 700 from a general-purpose computing device into a special-purpose computing device customized to facilitate the functionality presented herein. The CPU 702 can be constructed from any number of transistors or other discrete circuit elements, which can individually or collectively assume any number of states. More specifically, the CPU 702 can operate as a finite-state machine, in response to executable instructions contained within the software modules disclosed herein. These computer-executable instructions can transform the CPU 702 by specifying how the CPU 702 transitions between states, thereby transforming the transistors or other discrete hardware elements constituting the CPU 702.
(77) Encoding the software modules presented herein can also transform the physical structure of the computer readable media presented herein. The specific transformation of physical structure depends on various factors, in different implementations of this description. Examples of such factors include, but are not limited to, the technology used to implement the computer readable media, whether the computer readable media is characterized as primary or secondary storage, and the like. For example, if the computer readable media is implemented as semiconductor-based memory, the software disclosed herein can be encoded on the computer readable media by transforming the physical state of the semiconductor memory. For instance, the software can transform the state of transistors, capacitors, or other discrete circuit elements constituting the semiconductor memory. The software can also transform the physical state of such components in order to store data thereupon.
(78) As another example, the computer readable media disclosed herein can be implemented using magnetic or optical technology. In such implementations, the software presented herein can transform the physical state of magnetic or optical media, when the software is encoded therein. These transformations can include altering the magnetic characteristics of particular locations within given magnetic media. These transformations can also include altering the physical features or characteristics of particular locations within given optical media, to change the optical characteristics of those locations. Other transformations of physical media are possible without departing from the scope and spirit of the present description, with the foregoing examples provided only to facilitate this discussion.
(79) In light of the above, it should be appreciated that many types of physical transformations take place in the computer 700 in order to store and execute the software components presented herein. It also should be appreciated that the architecture shown in
(80)
(81) In a network environment in which the communications network 720 is the Internet, for example, the server computer 800A can be a dedicated server computer operable to process and communicate data to and from the client computing devices 800B-800G via any of a number of known protocols, such as, hypertext transfer protocol (“HTTP”), file transfer protocol (“FTP”), or simple object access protocol (“SOAP”). Additionally, the networked computing environment 800 can utilize various data security protocols such as secured socket layer (“SSL”) or pretty good privacy (“PGP”). Each of the client computing devices 800B-800G can be equipped with an operating system operable to support one or more computing applications or terminal sessions such as a web browser (not shown in
(82) The server computer 800A can be communicatively coupled to other computing environments (not shown in
(83) The data and/or computing applications may be stored on the server 800A, or servers 800A, and communicated to cooperating users through the client computing devices 800B-800G over an exemplary communications network 720. A participating user (not shown in
(84) The server computer 800A can host computing applications, processes and applets for the generation, authentication, encryption, and communication of data and applications, and may cooperate with other server computing environments (not shown in
(85) It should be appreciated that the computing architecture shown in
(86) The disclosure presented herein also encompasses the subject matter set forth in the following clauses:
(87) Clause 1. A neural network module, comprising: a plurality of neurons; a memory device storing a first buffer including first data for processing by the plurality of neurons in the neural network module, and a second buffer storing second data for processing by the plurality of neurons in the neural network module, wherein the first data in the first buffer and the second data in the second buffer are organized into corresponding rows and columns; and wherein the neural network module is configured to determine whether the first data in a column of the first buffer comprises a value or whether the second data in a corresponding column of the second buffer comprises the value, and cause the plurality of neurons to skip processing of the first data and the second data if the first data or the second data comprises the value.
(88) Clause 2. The neural network module of clause 1, wherein the value comprises zero, a range of values, or values above or below a threshold value.
(89) Clause 3. The neural network module of clauses 1 or 2, wherein the first data in the first buffer comprises input data to a neural network.
(90) Clause 4. The neural network module of any of clauses 1-3, wherein the second data in the second buffer comprise weights associated with a neural network.
(91) Clause 5. The neural network module of any of clauses 1-4, wherein the neural network module further comprises a group partitioner and scheduler, and wherein the group partitioner and scheduler determines whether the first data in the column of the first buffer comprise the value or whether the second data in the column of the second buffer comprise the value.
(92) Clause 6. The neural network module of any of clauses 1-5, wherein the plurality of neurons use ReLu (y=max(x,0)) as an activation function for a neural network.
(93) Clause 7. The neural network module of any of clauses 1-6, wherein the plurality of neurons are configured to process the first data and the second data synchronously.
(94) Clause 8. A neural network module, comprising: a plurality of neurons; and a memory device storing a first buffer storing first data for processing by the plurality of neurons in the neural network module, and wherein the neural network module is configured to determine whether data in the first buffer comprises a value, and skip processing of the data in the first buffer if the data comprises the value.
(95) Clause 9. The neural network module of clause 8, wherein the value comprises zero, a range of values, or values above or below a threshold value.
(96) Clause 10. The neural network module of clauses 8 or 9, wherein the first data in the first buffer comprises input data to a neural network.
(97) Clause 11. The neural network module of any of clauses 8-10, wherein the neural network module further comprises a group partitioner and scheduler, and wherein the group partitioner and scheduler determines whether the data located in the first buffer comprises the value.
(98) Clause 12. The neural network module of any of clauses 8-11, wherein the plurality of neurons use ReLu (y=max(x,0)) as an activation function for a neural network
(99) Clause 13. The neural network module of any of clauses 8-12, wherein the plurality of neurons are configured to process the first data and second data in a second buffer asynchronously.
(100) Clause 14. The neural network module of any of clauses 8-13, wherein the plurality of neurons are configured to process the first data and second data in a second buffer synchronously.
(101) Clause 15. A neural network module, comprising: a plurality of neurons; a memory device storing a first buffer storing first data for processing by the plurality of neurons in the neural network module, and a second buffer storing second data for processing by the plurality of neurons in the neural network module, wherein the first data in the first buffer and the second data in the second buffer are organized into corresponding rows and columns; and wherein the neural network module is configured to determine whether data located at a row and column in the first buffer or the second buffer comprises the value, cause a first neuron of the plurality of neurons to skip processing of the data located at the row and column if the data comprises the value, and cause the first neuron of the plurality of neurons to perform at least one operation on behalf of a second neuron of the plurality of neurons responsive to skipping processing of the data located at the row and column.
(102) Clause 16. The neural network module of clause 15, wherein the value comprises zero, a range of values, or values above or below a threshold value.
(103) Clause 17. The neural network module of clause 15 or 16, wherein the neural network module is further configured to combine results of the at least one operation performed by the first neuron on behalf of the second neuron with results of one or more operations performed by the second neuron.
(104) Clause 18. The neural network module of any of clauses 15-17, wherein the first data in the first buffer comprises input data to a neural network and wherein the second data in the second buffer comprise weights associated with the neural network.
(105) Clause 19. The neural network module of any of clauses 15-18, wherein the plurality of neurons use ReLu (y=max(x,0)) as an activation function for a neural network.
(106) Clause 20. The neural network module of any of clauses 15-19, wherein the plurality of neurons are configured to process the first data and the second data asynchronously.
(107) Based on the foregoing, it should be appreciated that a neural network module, or processor, that can reduce power consumption by skipping the performance of certain types of processing operations has been disclosed herein. Although the subject matter presented herein has been described in language specific to processor structural features, methodological and transformative acts, specific computing machinery, and computer readable media, it is to be understood that the subject matter set forth in the appended claims is not necessarily limited to the specific features, acts, or media described herein. Rather, the specific features, acts and mediums are disclosed as example forms of implementing the claimed subject matter.
(108) The subject matter described above is provided by way of illustration only and should not be construed as limiting. Various modifications and changes can be made to the subject matter described herein without following the example configurations and applications illustrated and described, and without departing from the scope of the present disclosure, which is set forth in the following claims.