![]() DEVICE AND METHOD FOR DISTRIBUTING CONVOLUTION DATA OF A CONVOLUTIONAL NEURON NETWORK
专利摘要:
The invention provides a device for distributing convolution coefficients of at least one convolution core of a convolutional neural network carried by an input bus (201) to a set of processing units in a calculator based on a convolutional neural network architecture. The device comprises at least one permutation network (30) driven by at least one control unit (32), the permutation network comprising a set of permutators (30) arranged to perform circular offsets of at least a portion of the bus input. For each convolution kernel, each control unit is configured to dynamically drive at least some permutators of the permutation networks (30) in response to an input event applied to the convolution kernel and at least one parameter representing the maximum size of the convolution nuclei. 公开号:FR3050846A1 申请号:FR1653744 申请日:2016-04-27 公开日:2017-11-03 发明作者:Olivier Bichler;Antoine Dupret;Vincent Lorrain 申请人:Commissariat a lEnergie Atomique CEA;Commissariat a lEnergie Atomique et aux Energies Alternatives CEA; IPC主号:
专利说明:
DEVICE AND METHOD FOR DISTRIBUTING CONVOLUTION DATA OF A CONVOLUTIONAL NEURON NETWORK Technical area The present invention generally relates to convolutional neural networks and in particular to a device and a method for distributing the coefficients of at least one convolution core to computing units in a calculator based on convolutional neural network architecture. . Artificial neural networks are computational models that mimic the functioning of biological neural networks. Artificial neural networks consist mainly of neurons interconnected by synapses that can be implemented by digital memories or by resistive components whose conductance varies as a function of the voltage applied to their terminals. Convolutional neural networks correspond to a particular model of artificial neural network. The convolutional neural networks were initially described in K. Fukushima's article, "Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position. Biological Cybernetics, 36 (4): 193-202, 1980. ISSN 0340-1200. doi: 10.1007 / BF00344251 ". The convolutional neural networks (designated in the English language by the terms "convolutional neural networks", or "deep (convolutional) neural networks" or "ConvNets") are networks of neurons without feedback ("feedforward"). , inspired by biological visual systems. Convolutional neural networks (CNN) are used in different fields of signal processing (visual, sound, or other), as for example in the field of image classification. However, the intrinsically parallel operation and complexity of conventional classifiers of convolutional neural networks put a brake on their efficient implementation in embedded systems. Solutions have been proposed to implement GPU-based GPU neural networks in order to significantly improve their performances, for example the solution described in the article by DC Ciresan, U. Meier, J. Masci, LM Gambardella, and J Schmidhuber, "Flexible, high performance convolutional neural networks for image classification. Proceedings of the Twenty-Second International Joint Conference on Artificial Intelligence - Volume Two ", IJCAI '11, pp. 1237-1242, 2011. ISBN 978-1-57735-514-4. doi: 10.5591 / 978-1-57735-516-8 / IJCAI11-210. In particular, several hardware implementations of convolutional convolutional networks have been proposed. Camunas-Mesa, C. Zamarreno-Ramos, A. Linares-Barranco, A. Acosta-Jimenez, T. Serrano-Gotarredona, and B. Linares- Barranco. An event-driven multi-kernel convolution processor module for event-driven vision sensors. Solid-State Circuits, IEEE Journal of 47 (2): 504-517, 2012. ISSN 0018-9200. doi: 10.1109 / JSSC.2011.2167409. Such a convolution implementation uses a separate digital memory to store convolutional cell coefficients and requires copying these core kernel coefficients to the compute unit at each pulse arrival. The hardware implementations of existing convolutional convolutional networks are based on the use of a computer to calculate the convolutional layers of the convolutional neural network, the computer comprising at least one processing unit (such as a processor) and digital memories storing the data. In some computer structures and for some applications, the processing units must access a parallel dataset. However, such access to data poses problems of routing and concurrency of data due to parallel reading. It is known to solve this access problem by using permutation networks. The permutation networks are data distribution and parallel communication structures. There are known permutation networks called MINs networks (acronym for "Multistage Interconnection Networks" meaning Multi-Stage Interconnection Networks), such as "Butterfly Network" networks, "Oméga Network", "Baseline" Network "and the Cube Network. Such networks are used to connect N inputs to N outputs with several permutation stages. Their complexities in number of permutators are (N / 2) * log2 (N), which makes them very compact. The "Butterfly", "Baseline" and "Cube" networks have a number of power inputs / outputs of two while the Omega network has a number of inputs / outputs that is a multiple of two. These networks are used in different architectures such as parallel computing architectures, switches, and so on. MIM networks have been implemented in several parallel computers. In existing solutions, a MIM type network can be instantiated with two types of permutators, either two-state or four-state. Two-state permutators are controlled with one bit. In a so-called "uncrossed" state of the permutators, the inputs are not permuted. In a so-called "crossed" state, the entries are permuted. Four-state permutators also have the two states "uncrossed" and "crossed", but include two additional states called "grouping state" and "state of unbundling". In the case of four-state permutators, conventional MIMs can perform all N to N connections. However, this type of switch is not compatible with analog signals. Indeed, the grouping and unbundling functions require the data to carry routing information with it, which is not possible for an analog data encoded in voltage. In particular, in a Butterfly network, the first nodes are 4 to 4 permutation structures, the higher depth nodes are 8 to 8 networks, and so on. MIM networks are compact and powerful. However, the number of entries is not free, which implies a reduction in flexibility and / or the use of a larger memory than necessary. Furthermore, this type of network can perform a limited number of circular offsets using two-state switches. MIM networks can not therefore be used in computers based on convolutional neural network architecture to allow access to data in parallel General definition of the invention The invention improves the situation by proposing a device for distributing the data. convolution coefficients of at least one convolution core of a convolutional neural network carried by an input bus to a set of processing units in a computer based on a convolutional neural network architecture, characterized in that the device comprises at least one permutation network driven by at least one control unit, the permutation network comprising a set of permutators arranged to effect circular offsets of at least a portion of the input bus. For each convolution kernel, each control unit is configured to dynamically drive at least one of the permutators of the permutation networks in response to an input event applied to the convolution kernel and at least one parameter representing the maximum size of the convolution kernels. nuclei of convolution. In some embodiments, the convolution core being represented by a convolution matrix of a given size in a chosen-size coordinate system, the permutation networks can be interconnected with one another in the form of a tree structure, called a shift tree. , the tree comprising a set of nodes, each node representing a permutation network, and a set of levels, the number of levels in the tree being determined from the number of dimensions of said marker, the size of the input bus being defined from the maximum convolution kernel size. According to another characteristic, each level of the tree may correspond to a given dimension of the marker, while the permutation networks arranged on a given level of the shaft are configured to perform circular offsets of the data of the input bus according to the dimension associated with the level. The convolution matrix representing each convolution core may comprise a set of columns, the routing device being configured to divide the input bus into an input subbus set as a function of the number of columns in the convolution matrix. , the convolution coefficients of each input sub-bus being associated with one of said permutation networks on a first level of the tree, each permutation network on the first level being configured to make circular offsets of the coefficients of the sub-buses. input bus according to an input event on the convolution kernel, the output of each permutation network of the first level of the tree being delivered to an input of an intermediate data bus in the form of a input data vector, the input data vectors of the secondary data bus being permuted by a permutation network arranged on the two th level of the tree. In one embodiment, the device may comprise at least one control unit for controlling the permutation networks of a given level of the tree. Each permutation network may comprise a set of permutators arranged in superposed layers to perform a circular shift of the lines of the bus at the input of the permutation network, each permutator layer being activatable by the control unit driving the permutation network and being configured. to make permutations between two input lines. The permutators can be two-state permutators. In some embodiments, each permutator layer may have a degree representing the distance between two lines of the permuted input bus, the degree of each permutator layer of a permutation network being two, raised to a value of chosen power (2n). The selected power value can be equal to the integer part of log2 (N), where N is the number of lines of the input bus. In one embodiment, the permutation network may be configured to perform a plurality of circular offsets smaller than the number of lines of the input bus. Alternatively, the permutation network may be configured to provide a circular offset equal in size to the number of lines of the input bus. The convolutional neural network may comprise an input matrix, the input matrix comprising a set of input neurons, the input matrix being connected to an output matrix by convolutional nuclei. The input event can then be the address of the input neuron to be activated on the input matrix of the convolutional neural network, the routing device being able to determine the number of lines of the input bus on which a circular offset is to be applied depending on the input address. The convolutional neural network may be pulsed, the input event being defined by the address of the pulse arriving on the input card. The invention further provides a neuromorphic calculator comprising a memory for storing the convolution kernel coefficients and a set of processing units for calculating the response of a neural network to an input event, the calculator comprising a device routing according to one of the preceding features for distributing the coefficients to the processing units. Embodiments of the invention thus allow a set of processing units of a convolutional neural network based computer to access data stored in parallel memory. BRIEF DESCRIPTION OF THE DRAWINGS Other features and advantages of the invention will become apparent from the description which follows and from the figures of the attached drawings in which: FIG. 1 represents an example of a convolutional network; FIG. 2 is a diagram showing a convolution layer consisting of several output cards; FIG. 3 illustrates the principle of operation of a convolution layer in a convolutional neural network; FIG. 4 shows an example of a convolutional neural network based calculator in which the data routing device can be implemented, according to some embodiments; FIG. 5 illustrates the distribution of the weight coefficients as a function of an input event; FIG. 6 shows the structure of a computing module based on a convolutional neural network in which the data routing device can be implemented, according to some embodiments; - Figure 7 shows the inputs / outputs of the data routing device, according to some embodiments; FIG. 8 shows the structure of the convolution data routing device, according to some embodiments; FIG. 9 illustrates the dynamically configurable routing device structure from a shift tree topology, according to some embodiments; FIG. 10 shows an exemplary implementation of the convolution data routing device for a maximum filter of 5 * 5 * 1, according to some embodiments; FIG. 11 is a diagram showing an example of two-state permutators that can be used in permutation networks, according to an exemplary embodiment; FIG. 12 is a diagram illustrating two-state permutators distributed in layers on the bus lines, according to an exemplary embodiment; FIG. 13 is a diagram illustrating permutator layers of different degrees, according to another exemplary embodiment; FIG. 14 shows an example of a permutation network for a 5-line bus with switch layers in 2 power n; FIG. 15 shows an example of a shift tree for a maximum filter of 5 * 5 * 1; FIG. 16 is a diagram of the routing device for a multi-convolution, according to an exemplary embodiment; Fig. 17 is a flowchart showing the configuration method according to some embodiments; FIG. 18 illustrates the configuration method for a 5-line shift on a 5-line bus for the possible offsets on a power n-layer 2 permutation network; FIG. 19 represents an example of a permutator with two digital states, according to some embodiments; and FIG. 20 represents an example of a permutation network for an 11-line bus with layers in 2 n power. The drawings include, for the most part, elements of a certain character. They can therefore not only serve to better understand the description, but also contribute to the definition of the invention, if any. detailed description An artificial neural network (also called "formal" neural network or simply designated by the term "neural network" hereinafter) consists of one or more layers of neurons, interconnected between them. Each layer consists of a set of neurons, which are connected to one or more previous layers. Each neuron in a layer can be connected to one or more neurons of one or more previous layers. The last layer of the network is called the "output layer". Neurons are connected to each other by synapses, or synaptic weights (also called "weight coefficients" or "weights" or "convolution coefficients"), which weight the efficiency of the connection between neurons. Synaptic weights are adjustable parameters of the neural network and store the information included in the neural network. Synaptic weights can be positive or negative. The so-called "convolutional" neuron networks (or "convolutional", "deep convolutional", "convnets") are furthermore composed of special type layers which may comprise convolutional layers, pooling layers, Anglo-Saxon language) and fully connected layers. A neural network consists of one or more convolutional layers, which can include pooling layers in the English language. The convolutional layers can be followed by a multilayer perceptron classifier. The output of a convolution layer may be connected to the input of the next layer or the output of the next layer. It can also loop back to the input or be output to other types of layers that are not convolutional layers. In a given convolutional layer, each neuron is connected to a sub-matrix of the input matrix. Sub-matrices have the same size. They are staggered from each other in a regular way and can overlap. The input matrix may be of any size. However, the input matrix is generally of 2D dimension when the data to be processed are visual data, the two dimensions then corresponding to the spatial dimensions X and Y of a 3D image if color image. FIG. 1 represents an example of a simplified convolutional network, with an input layer "env" corresponding to the input matrix, two convolution layers, "convl" and "conv2", as well as two completely connected layers "fc1 And "fc2". In this example, the size of the convolution kernels is 5x5 pixels and they are offset by 2 pixels (an offset or "stride" of 2): - "convl" has an input matrix "env" and 6 different convolution cores producing 6 output cards; - "conv2" has 12 different convolution cores and thus 12 output cards, and each output card takes as input all 6 output cards of the previous layer. In a neural network, the neurons are connected to their input sub-matrix / synapses whose weight is adjustable. The matrix K of the synaptic weights applied to the input sub-matrices of the neurons is the same for all the neurons of the same output map ("feature map" in Anglo-Saxon). Such a matrix K is also called a "convolution kernel". The convolution kernel is thus shared for the set of neurons of the same output card O, and is therefore applied to the whole of the input matrix, which reduces the memory required for the storage of the coefficients. which optimizes performance. For example, for image recognition, this makes it possible to minimize the number of filters or intermediate representations that best code the characteristics of the image and that can be reused throughout the image. The coefficients of a convolution kernel K (i.e. synaptic weights) may correspond to conventional signal processing filters (Gaussian, Gabor, Laplace ...), or be determined by learning, supervised or unsupervised, for example using the gradient retro-propagation algorithm used in multi-layered percepton neuron networks. The coefficients of the convolution nuclei can be positive or negative, and are generally normalized between -1 and 1, as are the input and output values of the neurons. Neural networks can be transposed into spike encoding ("spike" in English language). In this case, the signals propagated at the input and at the output of the network layers are no longer numerical values, but electrical pulses (comparable to Dirac pulses). The information that was coded in the signal value (normalized between -1 and 1) is then coded temporally with the order of arrival of the pulses (rank order coding) or with the frequency of the pulses . In the case of rank coding, the instant of arrival of the pulse is inversely proportional to the absolute value of the signal to be coded. The sign of the pulse then determines the sign of the value of the signal to be encoded. In the case of a frequency coding, the frequency of the pulses, between fmin and fmax, is proportional to the absolute value of the signal to be encoded. The sign of the pulse determines the sign of the value of the signal to be encoded. For example, considering an input matrix of the network corresponding to the luminance component of an image, normalized between 0 and 1, a white pixel (or matrix coefficient), coded by a value 1, will emit pulses at a frequency fmax, a black pixel, coded by a value 0, will emit pulses at a frequency fmin, while a gray pixel, coded by a value x, will emit pulses at a frequency / = fmin + x (fmax - fmin ) · The coding can also be pseudo-frequential, for example fishy: in this case fmax and fmtn represent average frequencies only. The initial phase of the pulses can be random. The pulses may also come directly from a sensor, such as a retina or an artificial cochlea, mimicking the operation of their biological equivalent. A neuron is defined by a nonlinear algebraic function, parameterized, with bounded values, and having real variables called "input" according to the neuron model used. A neuron is further characterized by an activation function g (), a threshold and synaptic weights. The neuron model is defined by a nonlinear algebraic function. This function can take as argument the value of the integration (representing the internal value of a neuron) but also, depending on the model, the time or the output of an internal counter. As used herein, the expression "integration" designates the time integral of pulse trains ("spike" in Anglo-Saxon language) weighted at the input of the neuron (ie time integral of a train of pulses weighted (Dirac comb for example)). This integration can be reset when the neuron fires (i.e. produces an output pulse). A neuron first realizes the weighted sum h of the coefficients of its input sub-matrix by the convolution kernel (in other words the scalar product between the input sub-matrix I and the matrix K), applying a aggregation function g = <I, W>. The output of the neuron corresponds to the value of the activation function g of the neuron applied to this sum: g (h). Classically, g can take the form of a sigmoid function, typically the hyperbolic tangent function. In the embodiments of a pulse-frequency neuron network with frequency coding, the calculation of the weighted sum h is done by accumulating the coefficient of the convolution core 14 at each arrival of a pulse on the corresponding input. The activation function of the neuron g can in this case be replaced by a threshold. When the absolute value of h exceeds the threshold following the arrival of a pulse on the input sub-matrix, the output neuron emits a pulse of the sign of h and returns the weighted sum h to the value 0. The neuron then enters a so-called "refractory" period during which it can no longer emit pulse during a fixed period. The pulses can therefore be positive or negative, depending on the sign of h when the threshold is exceeded. A negative input pulse reverses the sign of the corresponding kernel coefficient for accumulation. A convolution layer may contain one or more convolution cores which each have an input matrix (the input matrix of the different convolution cores may be the same) but have different convolution coefficients corresponding to different filters. As illustrated in FIG. 2, a convolution or "pooling" layer may consist of one or more output matrices 14 (also called "output cards" or "output feature maps" in the English language). , each output card being connectable to one or more input matrices 11 (also called "input cards"). Each convolution core 12 in a given convolutional layer produces a different output map 14 so that the output neurons are different for each core. The convolutional networks may also include local or global "pooling" layers that combine the neuron group outputs of one or more output cards. The combination of the outputs may for example consist of taking the maximum or average value of the outputs of the neuron group, for the corresponding output, on the output map of the "pooling" layer. The "pooling" layers make it possible to reduce the size of the output cards from one layer to another in the network, while improving its performance by making it more tolerant to small deformations or translations in the input data. Convolutional networks may also include fully connected layers of the perceptron type. As illustrated in FIG. 3, an output matrix (14), denoted by O, comprises coefficients Oi} j and has a size noted (Oh, Ow). This matrix corresponds to a matrix of neurons and the coefficients Oi: j correspond to the output values of these neurons, calculated from the entries and the synaptic weights. An input matrix or card 11 may correspond to an output card of a previous layer, or to an input matrix of the network that receives stimuli or a portion of the stimuli to be processed. A neural network may consist of one or more input matrices 11.11 may be for example RGB components, HSV, YUV or any other conventional component of an image, with a matrix by component. An input matrix denoted / comprises coefficients / y, and has a noted size (Ih, lw). An output card O is connected to an input matrix / by a convolution operation, via a convolution core 12 denoted K (the convolution core is also called a filter, or convolution matrix), of size (n, m ) and comprising coefficients Kk i. Each neuron of the output card 14 is connected to a part of the input matrix 11, this part being again called "input sub-matrix" or "receiver field of the neuron" and being of the same size as the matrix of convolution K. The convolutional matrix K comprising the synaptic weights is common for all the neurons of the output card 0 (the weights of the matrix K are then called "shared weights"). Each output coefficient of the output matrix Οέ; · then satisfies the following formula: In the above formula, gQ denotes the activation function of the neuron, while st and s7 denote the offset parameters ("stride" in English language) according to two dimensions, in particular in a vertical dimension and in a horizontal dimension respectively. Such a "stride" offset corresponds to the offset between each application of the convolution kernel on the input matrix. For example, if the offset is greater than or equal to the size of the kernel, then there is no overlap between each kernel application. An output card O is connected to an input matrix / by a "pooling" operation which downsamples the input matrix, which provides a subsampled matrix. The subsampling can be of two types: - A type of subsampling known as "MAX pooling" according to the equation below: - A sample type called "AVERAGE pooling" according to the equation below: The synaptic weights associated with connections in the case of a pooling layer are generally unitary and therefore do not appear in the formulas above. A fully connected layer comprises a set of neurons, each neuron being connected to all inputs of the layer. Each neuron 0} has its own synaptic weights WUj with the corresponding inputs lt and performs the weighted sum of the input coefficients with the weights which is then passed to the neuron activation function to obtain the output of the neuron. The activation function of neurons g () is generally a sigmoid function, as for example the tanhÇ function. For the "pooling" layers, the activation function can be for example the identity function. FIG. 4 diagrammatically represents an example of a computer based on a convolutional neural network architecture 100 in which a device for distributing data of at least one convolution core can be implemented, according to some embodiments. The computer 100 (also called "neuromorphic calculator") is configured to calculate at least one convolutional layer of a convolutional neural network. The calculator may comprise at least one convolution module 10 (also called "convolution block" or "convolution calculation module") configured to calculate each convolution layer, each convolution layer consisting of one or more output cards. of the convolutional neural network. The computation of a convolutional layer consists of calculating the internal value (also called "integration value") of the neurons that received an input event (such as a pulse), called "triggered" or "activated" neurons. >> and calculating the output value of these neurons. The calculation of a convolutional layer thus consists in determining the response of the neurons of the convolutional layer to an input event (such as a "pulse"). In embodiments where the computer comprises several convolutional calculation modules 10, the convolution modules 10 may be interconnected by an interconnection system 101, for example by using a network-on-a-chip (NOC) system. programmable interconnections (eg FPGA type), fixed-route interconnection systems, etc. The interconnection system 101 makes it possible to redirect the events between the modules and / or the inputs / outputs and ensures the connection between the different layers of the neuron network. Each convolution module 10 performs a convolution operation on one or a part of a convolutional layer of the neuron network. The convolution modules 10 may be used to calculate different convolutional layers. Alternatively, each convolution module 10 may be used to perform multiple filters in a given convolutional layer. In some embodiments, when a convolution module 10 is not sufficient to compute a given convolutional layer, a plurality of convolutional modules may be used to compute the convolutional layer. In some applications of the invention, the computer 100 may be a multi-core distributed memory computer, each core being interconnectable by an interconnection system, each calculation module forming a computing core which can be used to calculate one or more convolution operations. The different convolutional layers of the convolutional neural network are distributed on the various calculation modules 10. Figure 5 shows the distribution of weight coefficients as a function of an input event for a convolutional and pulse neural network. Each processing unit may be configured to calculate the value of independent neurons triggered by input events, based on the weight coefficient associated with the computing unit for each input event. In a pulse neuron network embodiment, the input event is represented by a pulse arriving on the network. A pulse neural network can receive a pulse train over time, each pulse can trigger one or more neurons. The input event can then be defined by an input address on the convolution layer. The following description will be made with reference to a pulsed convolutional neural network to facilitate the understanding of the invention. As used herein, the "input address" of a pulse represents the address of the pulse emitted by the previous layer (input pulses) and received by the considered layer. In the system, the pulses can be transmitted via a serial bus. The pulses thus propagate with them at least their transmission address. The entry address in the selected landmark may include the coordinates of the input event on the input map. In response to the emission of an event in the form of an electrical impulse, also called an "action potential" ("spike" in the English language) by an input neuron (pre-synaptic neuron), the The pulse crosses the synapses, which induces a pulse on a finite number of pst-synaptic neurons which are then solicited. The connection between the output neurons and the input neurons on the input card means that this pulse is not received by all the neurons of this layer. Such a property implies the existence of independent neurons in a layer of the neuron network 10 subjected to a pulse. Two neurons are said to be independent if, for a given input event, they can not be triggered at the same time. Thus, for a given incoming pulse, there are neurons that can not receive this pulse, at the same time (so-called independent neurons). According to some embodiments, each calculation module 10 can be configured to pool certain functions for groups of neurons independent of the same layer. Figure 6 illustrates the structure of a convolution module 10, according to some embodiments. The convolution module 10 comprises one or more processing units 20 (also called "elementary processing units" or "computing units"), such as elementary processors, configured to calculate the response of the neurons of a convolutional layer to an input event (such as an "impulse"). In response to the input event, the convolution module 10 is configured to distribute the coefficients of the convolution core 12 to at least some of the elementary processing units 20 in parallel. Each convolution module 10 comprises a synaptic weight memory 21 in which are stored the coefficients of the convolution kernels (14) and a data distribution device 200 (also called "routing device" or "data routing device" ) according to some embodiments of the invention. The weight coefficient memory 21 is configured to store the convolutional weights and is accessible in parallel reading by the different processing units 20. In a given convolutional layer, the neurons share the same weight coefficients (value of the convolutional filter). In each calculation module 10, the memory of the weight coefficients 21 is distributed parallel to the processing units as a function of the input events. Thus, the memory of the weight coefficients 21 is not redundant. Such a memory distribution makes it possible to optimize the memory space. For each input event applied to a convolution kernel, each processing unit 20 may be associated with a weight coefficient of the convolution kernel that is distributed by the data distribution device 200 after a circular shift of the bus data. input 201 which carries the coefficients of the memory 21. The remainder of the description will be made with reference to a convolutional and impulse neural network. In such a network, the input event is a pulse arriving on a convolution layer. This pulse is emitted by the preceding convolution layer (input pulse) and is received by the convolutional layer considered. The pulse can be defined by an input address, i.e. the address of the transmitted pulse. The pulses can be transmitted by a serial bus and then propagate with them at least their address. The processing units 20 perform the computation of the response of a convolutional layer to the input pulse from the weight coefficients distributed in parallel by the data distribution device 200. The elementary processing units 20 then generate the events output based on an input event for each triggered input neuron. The processing units 20 may depend on a chosen neuron model (also called "computational neuron model"). The neuron model can be defined during system programming. In some embodiments, the neuron model is identical for all neurons in a layer. A pulse-type neuron model generates temporal integration of the information. The response of a neuron to stimulation is the emission time of the next impulse. A pulse is emitted when the excitation of the neuron exceeds a threshold. A virtual clock can be used to delay neuron pulse emissions which can then be considered as dated events. There are several types of impulse neuron models, for example: The model of Hodgkin & Huxley (HH), defined by four interdependent differential equations; - The Integrate & Fire (IF) described by a unique differential equation; - Models related to the IF model such as the model Leaky Integrate & Fire (LIF) or the Quadratic Integrate Model & Fire (QIF), the Integrate & Fire (glF); The Spike Response Model (SRM) model based on the behavior of the neuron (phenomenological modeling of the neuron) and on a kernel function; Izhikevich's model (Izhikevich, 2003) which uses two differential equations. Each processing unit 20 (also called "sub-calculator of the neuromorphic model") may represent one or more neurons. Each elementary data processing unit 20 is configured to be able to generate an output value representing the output value of each neuron it contains which results from the integration of the data received by the neuron. This temporal sum (representing a temporal integration) is determined by using the activation function (also called transition function or transfer function) which depends on the neuron model. Each convolution module 10 includes an output management unit 22 for outputting the values calculated by the elementary processing units. This unit 22 can be configured to serialize the outputs of the processing units 20 and / or to create a grouping function ("pooling" in English language). The output management unit 20 may comprise a competition system for managing the competition between the output events according to predefined competition rules and a serialization unit configured to serialize the output events. The output management unit 22 may input a parallel data bus and output this data, one by one, over a serial bus, in a predefined order of priority, in some embodiments. FIG. 7 shows the inputs and outputs of the routing device 200, according to some embodiments, in which parallel values of the filter must be read as a function of the coordinates of the input pulse of the system. The routing device 200 is configured to control the distribution of the weight coefficients to the processing units 20 for the calculation of a neuromorphic convolution layer and to allow the parallel reading of the convolution filter by the processing units 20. In particular, in a pulse-convolutional neural network, the processing units 20 must be able to read in parallel values of the filter as a function of the coordinates of the input pulse of the computer 100, whereas the processing units do not read the values of the filter. same data at the same time. The routing device 200 allows a dynamic routing of these data to the processing units 20 which allows a parallel reading of the data of the memory 2 (filter coefficients). As shown in FIG. 7, the routing device 20 receives the data from the memory 2 in the form of an input bus 201 from the memory 2 which stores the filter coefficients of the neural network. The routing device 20 further receives the address of the input event to be processed 202 (hereinafter referred to as the "input address"). The routing device 200 is configured to reorder the coefficients of the filters (data representing convolution kernels) as a function of the input address, and delivers the reordered filter coefficients to the processing units 20 so as to be able to use the coefficients parallel processing in the processing units 200. The input address 202 of the convolution layer represents the address of the application point of the convolution core 12. The input address corresponds to the address of the pulse emitted by the previous layer (input pulse) and received by the layer in question. In the system, the pulses can be transmitted via a serial bus. The pulses thus propagate with them at least their transmission address. The input address may comprise two components X and Y according to the representation format chosen to encode the pulses. For example, the pulses transiting between the layers of the neural network 10 may be encoded according to the protocol or format AER ("Address-Event Representation" signifying representation by address event). In such a format, each pulse is digital and consists of a bit stream encoding the destination address (X, Y) of the pulse along two perpendicular axes X and Y, the reference (X, Y) corresponding to the reference of the input matrix, as well as the sign of the impulse. When a pulse arrives on the input matrix, the coded address (X, Y) represents the location of the input neuron to be activated. Thus, when a pulse arrives on the input matrix, its address (X, Y) gives the location to activate with X -► j and Y The routing device 200, placed between the memory 2 of the filter coefficients and the processing units 20, thus changes configuration at each input event. The routing device 200 may be implemented for a maximum number of dimensions and a maximum convolution kernel size (the convolution kernel is represented by a matrix). However, the routing device 200 may be parameterized for convolution core sizes smaller or equal to the maximum size, or for several different convolution cores. The implementation of the routing device 200 can therefore be of any size. The routing device 200 may be based on a regular structure while scaling in terms of maximum matrix size and number of dimensions. Figure 8 illustrates the structure of the routing device 200 according to one embodiment. According to one aspect of the invention, the routing device 200 comprises at least one permutation network 30 controlled by at least one parameterizable control unit 32 (the control units are hereinafter referred to as "decoder"). Each permutation network 30 is configured to perform circular offsets and / or offsets of the input data bus 201 or a portion of the bus 201 by shifting the values of the coefficients carried by the wires of the bus 201. wire (or "line") of the input bus 201 transmits or carries a coefficient of the digital or analog convolution core. Each decoder 32 (also called "control unit") is configured to drive the permutators 30 according to the input address of the convolution core and at least one parameter 34 representing the size of the convolution cores to be processed. According to some embodiments, the routing device 200 may rely on a tree representation (hereinafter referred to as an "offset tree") to route the data from a convolution filter to the processing units 20. . The tree representation is constructed by the routing device based on the maximum size of the convolutional filter to be processed. The tree may be further constructed from other parameters which may include: • The input bus size 201; and / or • division (or "cutting") of the input bus into parts; and / or • The depth of the tree. The size of the input bus 201 may be defined as being equal to the number of elements in the maximum convolutional filter. The cutting of the input bus can be defined as being equal to the number of columns (respectively of lines) of the convolution filter in its matrix representation (12) or more generally from this number of columns (respectively of lines). The depth of the tree can be defined as being equal to the number of dimensions of the convolution filter or more generally from this number of dimensions. The depth of the tree thus defines the number of levels of the tree. The remainder of the description will be made with reference to a cutting of the input bus according to a column cut-out of the convolution matrix by way of non-limiting example, each sub-bus comprising the components (convolution coefficient) of a column of the convolution matrix. Each node of the tree represents a permutation network 30 configured to perform the circular offsets of a data vector, representing the input convolution coefficients of a portion of the input bus 201, or circular offsets of the subnets. -Sets (corresponding to the 2010 subbus entries) of this vector. According to some embodiments, each level of the tree corresponds to a given dimension of the coordinate system in which the convolution matrix is represented. The permutation networks arranged on a given level of the tree may advantageously be configured to perform circular offsets of the data received at the input according to the dimension of the selected reference mark associated with the level of the tree (the reference being used to represent the elements of the neural network). Figure 9 illustrates the equivalence between a maximum convolutional filter and the tree topology, according to some embodiments. In the example of FIG. 10, the matrices of the neural network, and in particular the convolution matrices 12, are represented in a three-dimensional coordinate system (X, Y, Z). In a column cut, the column number of the convolution matrix being equal to p, the input bus 201 can be divided into p sub-bus {2010-1, ..., 2010-p}, each sub bus comprising the components of a column of the convolution matrix. It should be noted that each convolution coefficient in the convolution matrix may be associated with an address or position defined by coordinates in the used coordinate system. In the example of FIG. 9, the reference having three dimensions X, Y and Z, the shift tree comprises 3 levels, each level being associated with a dimension of the marker. The permutation networks 30 on a given level of the tree are thus configured to perform circular offsets of the received data, according to the dimension associated with this level of the tree. For example, the level 1 permutation networks 30-1 perform circular offsets of the sub-buses 2010-i (components of each column i of the convolution matrix) along the X axis, the permutation networks 30-2 of the Level 2 perform circular offsets of Y-axis level 1 swap network outputs, and Level 3 swap networks 30-3 perform circular offsets of Z-level 2 level outputs. Fig. 10 shows an exemplary tree representation of the routing device 200 adapted to process a 5x5 maximum convolution matrix in a two-dimensional (X, Y) coordinate system. The input bus 201 therefore comprises 25 elements (5x5). The number of columns of the convolution matrix being equal to 5, 5 sub-buses 2010 of 5 elements (denoted {20101-1, ..., 2010-i, ..., 2010-5}) can be created. Since the filter has two dimensions (2D matrices defined along two axes X, Y), the depth of the tree is 2 (the tree has two levels). Each of the sub-buses 2010 can be permuted independently of the other sub-buses by a separate permutation network (X-dimensional off-shifts) in the first level of the tree (5 permutation networks at the level 1 of the sub-bus). 'tree). The outputs of the 5 sub-buses 2010 can be joined in an intermediate bus 204 comprising 5 elements (5 wires). The data of the secondary bus 204 can be exchanged by a permutation network arranged on a second level of the tree which receives the data of the secondary bus 204 (offset according to the dimension Y). The tree thus created therefore has 5 nodes on the first level and a node on the second level. Each permutation network 30 may consist of a set of circular shift operators, hereinafter referred to as "permutators". The permutators 30 can be in two states and distributed in superimposed layers (also called "layers" below) on the lines of the bus. A permutation layer may perform a circular shift. Each layer thus shifts the data of a selected number of bus lines to the right. The values on the right are not overwritten but are shifted to the left. The set of permutation layers can perform any useful circular offsets. Fig. 11 shows an example of a two-state permutator 300 that may be used in each permutation network 30. A two-state switch 300 may be controlled with one bit. In the so-called "uncrossed" state of the permutator 300 (shown at the top), the inputs are not permuted. In the so-called "crossed" state (shown below), the entries are swapped. FIG. 12 represents an exemplary permutation network 30 according to two representations (left part and right part) comprising three permutators 300 with two states distributed in layers on the bus lines carrying the values 0,1,2,3. The three permutators 300 perform a circular shift modifying the order of the initial data {0, 1, 2, 3}. The permutation network 30 thus delivers the data {3, 0, 1, 2} reordered by circular shift. The permutation network 30 may be configured to make circular offsets of different degrees on the N son of the input sub-bus 2010 with which it is associated. Indeed, each layer of permutators can act on more or less distant lines. The distance between two permuted lines in a given stratum defines the degree of this stratum. FIG. 13 shows examples of permutation networks 30-1, 30-2, 30-3 and 30-4 comprising permutators configured in layers according to different degrees - the permutation layers of the permutation network 30-1 are of degree 1 ; the permutator strata of the permutation network 30-2 are of degree 2; the permutator strata of the permutation network 30-3 are of degree 3; and the permutator strata of the permutation network 30-4 are of degree 4. The circular offsets to be applied can be defined by offset numbers. An offset number can define the circular offset to apply. Thus an offset number "1" may trigger the application of a circular shift to the right, an offset number "2" may trigger the application of two circular offsets to the right, and so on. According to a preferred embodiment, a bus of N lines is at most N-1 shifted. The circular offsets made by the layers (or "layers") of permutators 300 can be added. Thus, for example, it is possible to use a degree 2 permutator layer with a layer of degree 1 to make the same shift as the layer of degree 3. In one embodiment, the degrees of the permutator layers 300 used in each permutation network 30 of the routing device 20 may correspond to the sum-up decomposition of the circular offsets of the bus 201 and all the sub-buses 2010. Thus, the permutation network 30 can perform any circular offsets of the input bus and / or its sub-bus. In addition, the permutator layers 300 in each permutation network 30 may preferably be arranged in descending order of degrees. In a particular embodiment, the degree of permutator layers 300 in each permutation network 30 can be set to 2 power n (2n) with n e [O, [log2 (N) ]. In the case of a 5-line bus {N = 5), it is therefore possible to use 3 permutator layers 300 for each permutation network 30, each layer being respectively of degree 4, 2 and 1. FIG. 13 represents such an example of permutation network 30 having 3 layers of permutators in 2 power n for a bus of 5 lines. In the example of FIG. 13, the permutation network comprises a first layer of degree 4 (comprising 1 permutator 300), a second layer of degree 2 (comprising 3 permutators 300) and a third layer of degree 1 (comprising 4 permutators 300). With such layers whose degree is fixed in 2 power n, it is possible to make circular offsets of 1 to 7 = 4 + 2 + 1 passing through all the intermediate values. Such decomposition into permutator layers of degree 2n has a complexity in number of permutators equal to: The complexity thus obtained is low and close to conventional MIM networks. FIG. 15 represents an exemplary routing device 200 whose elements are arranged according to a tree representation, for maximum convolution matrix of size 5 × 5 × 1. According to some embodiments, the permutation networks 30 located at the same depth in the tree (same level of the tree) share a same decoder 32. At each level of the tree is thus associated at least one decoder 32 configured to control the permutation networks 30 arranged on this level. In these embodiments, the total number of decoders 32 is at least equal to the depth of the tree. For example, if the tree has a depth of 2, 2 independently controlled decoders (1 for each depth) are used. Such an arrangement of the decoders makes it possible to reduce the control logic. Each decoder 32 associated with a given level of the tree is configured to dynamically activate the permutators 300 permutation networks 30 arranged on this level of the tree so as to change the number of shifts applied depending on the event and an input configuration defined in particular by the address of the input event. Thus, in the example of FIG. 15, the decoder 32-1 is configured to dynamically control the activation of the permutators 300 of the permutation networks 30-1 of the first level as a function of the input event, while the Decoder 32-2 is configured to dynamically control the activation of permutators 300 of the second level permutation networks 30-2. The decoders 32 may inhibit some permutators 300 of the permutation network 30 to create independent offset subspaces. From these subspaces subtrees and subsets of the input vector of the permutation network can be created. A permutator 300 may be inhibited for all layers of all stages. In one embodiment, the permutators 300 of a given layer are activated at the same time. The input configuration may be used by the routing device 200 to determine the number of lines of the input bus 201 on which a circular offset is to be applied. The input configuration may be common to the different decoders 32. The input configuration may be used after the construction of the tree to set the size of the processed convolution. The routing device 200 may process one or more convolutions at the same time as a function of the number of offsets to be applied relative to the size of the input bus, as shown in FIG. 16. FIG. 16 shows the offset tree representation used to dynamically configure the permutation networks 30 according to an input event for each convolution core C0, C1, C2, C3. Each convolution uses 3 permutation networks Px (30) on the first level of the shaft to perform circular sub-shifts according to the dimension X and a permutator Py (30) on the second level of the shaft to make shifts according to the dimension Y. On each level and for each convolution core, at least one decoder 32 (not shown in FIG. 16) can drive the permutation networks by using a control word for each permutation network, the control word comprising as many bits as permutators 300 in the permutation network 30. The value of each bit in the control word controls the activation status of the associated permutator 300. The circular offsets thus made on the various input sub-buses 2010 thus make it possible to reorder the coefficients carried by the wires of these sub-buses. The routing device 200 then distributes the coefficients thus reordered to the processing units 20. For example, the coefficients {021} of the convolution C0 of the line L0 of the convolution matrix (according to a line cut of the convolution matrix) and the coefficients {3,5,4} of the convolution C1 of the line L2 the convolution matrix are distributed after reordering ({012} for C0, L0 and {345} for C1, L2 to the same processing unit 20. Each processing unit receives only one value. The different filters can be cut (or divided) into lines. These lines can then be concatenated on a sub-bus. The following subbus contains the following lines. Once all the rows of these filters are placed, the next filter is processed. In a preferred embodiment, a line can not be cut to place it on 2 under buses. For example, considering 11 subbuses of 11 elements (ie 121 elements), on a given sub-bus, it is possible to place 3 lines of 3 different 3 * 3 filters. The 3 filters use 3 sub-buses, ie 33 elements (wires). It is therefore possible to constitute 9 filters 3 * 3. In some embodiments, if the number of offsets to be applied is less than the size of the input bus 201 having a total number of lines equal to N, the routing device 200 can perform the permutations of lines as follows: - if the number of lines to be swapped is greater than half the total number of lines (N / 2), the routing device 200 applies the swapping one time on the input bus 201 (for example a permutation of 4 elements of input of a bus of 5 elements is carried out); otherwise, if the number of lines to be switched is less than N / 2, the permutation can be applied as many times as possible. For example, a permutation of 2 input elements of a 5 element bus 201 can be applied twice on the bus to process two 2x2 convolutions at the same time. According to one characteristic, the non-useful values may not be permuted and keep their initial position. The decoders 32 may implement a permutator activation method for determining the permutators 300 to be enabled in the permutation networks for a given input configuration and for a given circular permutation (the permutation can be defined by an offset number). ), and taking into account the topology of permutation networks. The activation method (also called "configuration method") can be applied for all possible offsets and all possible input configurations. Fig. 17 is a flowchart showing the method of activating the permutators of a permutation network of a given level of the tree. The permutation network 30 consists of permutator layers 300, each layer comprising one or more permutators 300, each having a degree. In step 500, a set of permutator layers 300 of the permutation network is selected based on the sum of the degrees associated with the permutators 300 of that set of layers. The layer assembly includes at least one layer. In one embodiment, for the permutation "0", no permutator is activated. In one embodiment, the set of layers selected is such that the sum of the degrees associated with the permutators 300 of this set of layers is equal to the offset to be applied (defined by an offset number). At step 502, in the selected set of layers, some of the permutators are activated. The permutators that are enabled are those that move data from bus 201 or input subbus 2010 from the left to target locations on the right. Activation of the permutators results in a circular shift of the input data of the permutation network 30. In step 504, each data thus permuted can be tested. The values can be tested from left to right. Thus, in step 505, it is determined whether a condition relating to the data tested after permutation (initially the left-most datum) is satisfied. This condition can consist in determining whether the data, which is brought back to the position considered by each permutation applied in step 502 and which corresponds to an activated permutator (initially left-most position), is positioned on the desired line of the bus. output of the permutation network. If the condition is not satisfied, in step 506, another switch 300 of the subassembly selected in step 500 that has not been activated in step 502 can be activated to replace the switch without assign the permutations made beforehand. If the tested data is well placed (condition 505 satisfied), steps 504 and 507 are iteratively repeated to check whether the following data (507) are properly placed. If the number of permuted lines of the input bus 201 is less than half the number of lines (201) in the bus 201, the found configurations can be repeated as many times as possible on the input bus. FIG. 18 illustrates the successive steps of the permutator activation method for an example of a layered permutation network, for all line offsets on an input bus of 5 lines over a Layer 2 permutation network. power n. The red permutators are turned on in step 500 while the green permutators are turned on in step 504. When all the permutator configurations 300 have been determined, these configurations can be formalized in the form of a logic circuit or a correspondence table controlled by a control bus and by a configuration bus. The routing input configuration for a given input event provides the size of the processed filter, the control, and / or the number of circular offsets to be applied. FIG. 19 shows an example of a two-state digital permutator implementation that can be used in the permutation networks 30 of the routing device 200. The two-state switch 300 of FIG. 19 is realized by using two multiplexers 301 and 302 taking the same inputs and sharing the same control bit 303. However, the inputs of the multiplexers are reversed (in the example, the multiplexer 301 receives the same inputs). inputs A and B while the multiplexer 302 receives the inputs B and A). The size of the input buses of the multiplexers 301/302 can be arbitrary: the permutator 300 can thus interchange buses of any size. In the example of FIG. 19, when the control bit 303 is at 0, the data A is routed to C and the data B is routed to D. Conversely, when the control bit is at 1, the data A is routed to D and the data B is routed to C. FIG. 20 shows an example of a permutation network 30 of an 11-line input bus 201 with 2n layers that can use such a two-state switch 300. The input bus switch network comprises 1 ^ 002 (11)] = 3 layers at 2 ™, ie ne [0.3], the permutation network 30 thus contains layers of degree 8, 4, 2 and 1 and 29 permutators 300. Such a permutation network structure 30 allows to do all the circular permutations of a bus of 11 lines and all its under buses. Thus the list of circular offsets that can be performed by such a permutation network comprises: - all offsets of a bus of 11 lines; - All offsets of a bus of 10 lines; - All offsets of a 9-line bus; - All offsets of a bus of 8 lines; - All offsets of a bus of 7 lines; - All offsets of a bus of 6 lines; - all offsets of 2 sub-buses of 5 lines; - all offsets of 2 sub-buses of 4 lines; - all offsets of 3 sub-buses of 3 lines; - All sub-bus offsets of 2 lines. Such a permutation network 30 can be controlled by a control word (29 bits in this example) supplied by the decoder 32 associated with the permutation network 30. Each bit of the control word is associated with one of the permutators 300 of the permutation network 30. The value of each bit of the control word controls the activation status of the associated permutator 300 (for example, the value 1 commands the activation of the associated permutator while the value 0 leaves the permutator inactivated state). Since the permutators 300 are arranged in layers of degree deg, the number of permutators in a given layer is: N - 2n = N - degn, where N represents the number of elements in the bus. Since the number of layers is equal to [log2 (N) , the total number of permutators is In an exemplary implementation of the routing device 200 using permutation networks according to the configurations of FIGS. 19 and 20 (29 permutators per permutation network), for a convolution matrix of size 11 × 11 × 1, the input bus comprises 121 lines. (11x11) divided into 11 packets of 11 lines forming the 11 input sub-buses 2010. The filter having two dimensions (2D matrices defined along two axes X and Y), the depth of the tree is 2 (the tree has two levels). The tree contains 12 nodes each representing a permutation network. The routing device 200 therefore uses 12 permutation networks (30) and 29x12 = 348 permutators (300). The offset tree can be set to perform all matrices of size 11x11 to 1x1. The parameterization word 203 may be represented by 4 bits and the control word 4 + 4 = 8 bits. The embodiments of the invention thus make it possible to find the target offset from the address of the input event to reorder the data of a convolution filter to be transferred to the processing units 20 in a computer 100 to convolutional neural network architecture base. The routing device 200 allows dynamic activation of the permutators of the permutation networks by using decoders 32 that can be parameterized as a function of the input event, the maximum size of the convolution core and / or the offset to be applied. It allows to reorder the weight coefficients carried by the input vector (input bus) according to the input events (for example pulses) and network parameters by applying controlled circular permutations. The invention provides a solution for dynamically routing data of convolution kernels in neuromorphic computers and in particular in massively parallel neuromorphic computers. The invention notably allows a parallel and parameterizable routing of data for neuromorphic calculations of convolutions, a distribution and a scheduling of the parallel weight coefficients for a convolution. It offers flexible routing including the creation of independent sub-routes. The routing device 200 dynamically adapts to the size and number of dimensions of the convolutions. This results in a reduced complexity of N2 compared to existing solutions (complexity N3). The routing device 200 according to the embodiments of the invention can dynamically change the configuration of the permutators 300 of the permutation networks, at each input event on a convolution core. The routing device 200 is implementable not only for maximum size and maximum convolution filter size, but also for all convolution matrix sizes (12) smaller than or equal to the maximum size, or even for several convolution matrices at the same time. The routing device 200 thus allows scaling in terms of maximum matrix size and number of dimensions of the convolution core. The routing device 200 requires a smaller implementation area than in existing multiplexer-based implementations. The offset tree makes it possible to represent the interconnection of the permutation networks 30 and to process the convolution filters as a function of the maximum kernel to be processed, and the number of dimensions of the convolution filter (defining the depth of the tree). The topology of the permutation networks 30 and permutator layers 30 within the permutation networks allow circular permutations of the input bus and / or input subbuses by dynamically controlling the activation of the permutators. 30. The dynamic control of the permutators 300 and more generally the dynamic configuration of the permutation networks 30 as a function of the input event are such that the permutation networks can perform all the circular offsets. The routing device 200 according to the embodiments of the invention can be applied to any input bus of any size in a completely parallel manner, using only permutators 300 that can be digital or analog. The routing device 200 may be implemented for digital or analog signals. It also offers a great flexibility of implementation (size of the input bus, depth of the shaft, etc.) · The circular offsets can be realized at the level of the input bus 201 but also at its sub-level. bus. Although the invention has a particular advantage in an application to a pulse neuromorphic convolution calculator for transferring the values of a convolutional filter to processing units representing neuromorphic computing units 20, the invention is not limited to such an application. In a variant, the invention applies to any device in which the coefficients of at least one convolution core must be distributed in parallel to processing units. Those skilled in the art will understand that the method of activating the permutators 300 according to the embodiments can be implemented in various ways by hardware, software, or a combination of hardware and software, particularly under the A form of program code that can be distributed as a program product in a variety of forms. In particular, the program code may be distributed using computer readable media, which may include computer readable storage media and communication media. The methods described in the present description can in particular be implemented in the form of computer program instructions executable by one or more processors in a computer computing device. These computer program instructions may also be stored in a computer readable medium. The invention is not limited to the embodiments described above by way of non-limiting example. It encompasses all the embodiments that may be envisaged by those skilled in the art. In particular, the invention is not limited to a pulse type convolutional neural network. Moreover, the invention is not limited to a number of dimension equal to 2 or 3 as illustrated in the examples above.
权利要求:
Claims (14) [1" id="c-fr-0001] claims A device for distributing convolution coefficients of at least one convolutional core of a convolutional neural network carried by an input bus (201) to a set of processing units in a computer based on an architecture of convolutional neural network, characterized in that the device comprises at least one permutation network (30) driven by at least one control unit (32), the permutation network comprising a set of permutators (30) arranged to perform offsets at least a portion of the input bus, and in that, for each convolution core, each control unit is configured to dynamically drive at least some of the permutators (300) of the permutation networks (30) in response an input event applied to the convolution kernel and at least one parameter representing the maximum size of the convolution kernels. [2" id="c-fr-0002] 2. Device according to claim 1, characterized in that each convolution core is represented by a convolution matrix of given size in a reference of selected dimensions, and in that the permutation networks are interconnected with each other in the form of a tree structure, said shift tree, said tree comprising a set of nodes, each node representing a permutation network, and a set of levels, the number of levels in the tree being determined from the number of dimensions of said marker , the size of the input bus (201) being defined from the maximum convolution kernel size. [3" id="c-fr-0003] 3. Device according to claim 2, characterized in that each level of the tree corresponds to a given dimension of said marker, and in that the permutation networks (30) arranged on a given level of the shaft are configured to perform circular offsets of the data of the input bus according to the dimension associated with said level. [4" id="c-fr-0004] 4. Device according to one of claims 2 and 3, characterized in that the convolution matrix representing each convolution core (12) comprises a set of columns, and in that the routing device (200) is configured to divide the input bus into a set of input subbuses according to the number of columns in the convolution matrix, the convolution coefficients of each input subbus (2010) being associated with one of said permutation networks (30) on a first level of the tree, each permutation network on said first level being configured to perform circular offsets of the coefficients of the input subbuses as a function of an input event on the convolution core , the output of each permutation network of the first level of the tree being inputted from an intermediate data bus in the form of an input data vector (204), the data vectors are the secondary data bus input being permutated by a permutation network arranged on the second level of the tree. [5" id="c-fr-0005] 5. Device according to one of claims 2 to 4, characterized in that it comprises at least one control unit (32) for driving the permutation networks of a given level of the tree. [6" id="c-fr-0006] 6. Device according to one of the preceding claims, characterized in that each permutation network comprises a set of permutators (300) arranged in superposed layers to perform a circular shift of the lines of the bus (201) at the input of the permutation network ( 30), each permutator layer (300) being activatable by the control unit driving the permutation network and being configured to perform permutations between two input lines. [7" id="c-fr-0007] 7. Device according to claim 5, characterized in that the permutators are two-state permutators. [8" id="c-fr-0008] 8. Device according to claim 7, characterized in that each permutator layer (300) has a degree representing the distance between two lines of the permuted input bus, and in that the degree of each layer of permutators (300) d a permutation network (30) is equal to 2 raised to a selected power value (2n). [9" id="c-fr-0009] 9. Device according to claim 8, characterized in that the selected power value is equal to the integer part of log2 (N), where N denotes the number of lines of the input bus (201). [10" id="c-fr-0010] 10. Device according to one of claims 5 to 6, characterized in that the permutation network is configured to perform several circular offsets smaller than the number of lines of the input bus (201). [11" id="c-fr-0011] 11. Device according to one of claims 5 to 6, characterized in that the permutation network is configured to achieve a circular offset of size equal to the number of lines of the input bus (201). [12" id="c-fr-0012] 12. Device according to one of the preceding claims, characterized in that the convolutional neural network (100) comprises an input matrix, the input matrix comprising a set of input neurons, the input matrix being connected to an output matrix by convolution kernels, and in that the input event is the address of the input neuron to be activated on the input matrix of the convolutional neural network, the routing device ( 200) being able to determine the number of lines of the input bus (201) on which a circular offset is to be applied according to the input address. [13" id="c-fr-0013] 13. Device according to one of the preceding claims, characterized in that the convolutional neural network is pulsed and in that the input event is defined by the address of the pulse arriving on the input card. . [14" id="c-fr-0014] A neuromorphic calculator comprising a memory for storing the convolutional kernel coefficients and a set of processing units for calculating the response of a neural network to an input event, characterized in that it comprises a routing (200) according to one of the preceding claims for distributing the coefficients to the processing units.
类似技术:
公开号 | 公开日 | 专利标题 FR3050846A1|2017-11-03|DEVICE AND METHOD FOR DISTRIBUTING CONVOLUTION DATA OF A CONVOLUTIONAL NEURON NETWORK US10803347B2|2020-10-13|Image transformation with a hybrid autoencoder and generative adversarial network machine learning architecture US20190392253A1|2019-12-26|Object recognition with reduced neural network weight precision US11055608B2|2021-07-06|Convolutional neural network EP3449423B1|2021-07-21|Device and method for calculating convolution in a convolutional neural network WO2020177651A1|2020-09-10|Image segmentation method and image processing device Zeng et al.2019|Single image super-resolution using a polymorphic parallel CNN WO2021018163A1|2021-02-04|Neural network search method and apparatus US20190340510A1|2019-11-07|Sparsifying neural network models US20200026997A1|2020-01-23|Method of managing data representation for deep learning, method of processing data for deep learning and deep learning system performing the same EP3659072A1|2020-06-03|Computer for spiking neural network with maximum aggregation WO2022022288A1|2022-02-03|Image processing method and apparatus US20190332925A1|2019-10-31|Neural hardware accelerator for parallel and distributed tensor computations CN112561027A|2021-03-26|Neural network architecture searching method, image processing method, device and storage medium WO2020043753A1|2020-03-05|Architecture of a computer for calculating a convolution layer in a convolutional neural network KR102311659B1|2021-10-13|Apparatus for computing based on convolutional neural network model and method for operating the same Labunets et al.2017|Retinamorphic bichromatic Schrödinger metamedia EP3955170A1|2022-02-16|Systolic calculation architecture for implementing artificial neural networks processing several types of convolutions Heydrich2021|Lightweight deep learning for monocular depth estimation Lazcano et al.2021|Reconfigurable Hybrid Model Convolutional Stage–Infinity Laplacian Applied to Depth Completion Lau et al.2021|Scaled-Time-Attention Robust Edge Network CN112308107A|2021-02-02|Event-based feature classification in reconfigurable and time-coded convolutional spiking neural networks CN113892115A|2022-01-04|Processor, logic chip and method for binary convolution neural network Tanimoto2013|Department of Computer Science, FR-35 University of Washington Seattle, Washington 98195 Szu et al.0|Natural Intelligence can do Compressive Sampling adaptively
同族专利:
公开号 | 公开日 WO2017186830A1|2017-11-02| FR3050846B1|2019-05-03| EP3449424A1|2019-03-06| US20190156201A1|2019-05-23|
引用文献:
公开号 | 申请日 | 公开日 | 申请人 | 专利标题 US7237055B1|2003-10-22|2007-06-26|Stretch, Inc.|System, apparatus and method for data path routing configurable to perform dynamic bit permutations| WO2015090885A1|2013-12-18|2015-06-25|Commissariat A L'energie Atomique Et Aux Energies Alternatives|Signal processing module, especially for a neural network and a neuronal circuit| FR3025344A1|2014-08-28|2016-03-04|Commissariat Energie Atomique|NETWORK OF CONVOLUTIONAL NEURONS|WO2020043753A1|2018-08-31|2020-03-05|Commissariat A L'energie Atomique Et Aux Energies Alternatives|Architecture of a computer for calculating a convolution layer in a convolutional neural network| US10360470B2|2016-10-10|2019-07-23|Gyrfalcon Technology Inc.|Implementation of MobileNet in a CNN based digital integrated circuit| US11164071B2|2017-04-18|2021-11-02|Samsung Electronics Co., Ltd.|Method and apparatus for reducing computational complexity of convolutional neural networks| US10366328B2|2017-09-19|2019-07-30|Gyrfalcon Technology Inc.|Approximating fully-connected layers with multiple arrays of 3x3 convolutional filter kernels in a CNN based integrated circuit| JP2019200675A|2018-05-17|2019-11-21|東芝メモリ株式会社|Processing device and data processing method| US11211944B2|2019-04-17|2021-12-28|Samsung Electronics Co., Ltd.|Mixed-precision compression with random access| US20200336272A1|2019-04-17|2020-10-22|Samsung Electronics Co., Ltd.|Hardware channel-parallel data compression/decompression| CN112308107A|2019-07-25|2021-02-02|智力芯片有限责任公司|Event-based feature classification in reconfigurable and time-coded convolutional spiking neural networks|
法律状态:
2017-04-28| PLFP| Fee payment|Year of fee payment: 2 | 2017-11-03| PLSC| Search report ready|Effective date: 20171103 | 2018-04-26| PLFP| Fee payment|Year of fee payment: 3 | 2019-04-29| PLFP| Fee payment|Year of fee payment: 4 | 2020-04-30| PLFP| Fee payment|Year of fee payment: 5 | 2021-04-29| PLFP| Fee payment|Year of fee payment: 6 |
优先权:
[返回顶部]
申请号 | 申请日 | 专利标题 FR1653744|2016-04-27| FR1653744A|FR3050846B1|2016-04-27|2016-04-27|DEVICE AND METHOD FOR DISTRIBUTING CONVOLUTION DATA OF A CONVOLUTIONAL NEURON NETWORK|FR1653744A| FR3050846B1|2016-04-27|2016-04-27|DEVICE AND METHOD FOR DISTRIBUTING CONVOLUTION DATA OF A CONVOLUTIONAL NEURON NETWORK| EP17720462.5A| EP3449424A1|2016-04-27|2017-04-27|Device and method for distributing convolutional data of a convolutional neural network| US16/095,923| US20190156201A1|2016-04-27|2017-04-27|Device and method for distributing convolutional data of a convolutional neural network| PCT/EP2017/060017| WO2017186830A1|2016-04-27|2017-04-27|Device and method for distributing convolutional data of a convolutional neural network| 相关专利
Sulfonates, polymers, resist compositions and patterning process
Washing machine
Washing machine
Device for fixture finishing and tension adjusting of membrane
Structure for Equipping Band in a Plane Cathode Ray Tube
Process for preparation of 7 alpha-carboxyl 9, 11-epoxy steroids and intermediates useful therein an
国家/地区
|