JP6995851B2 - Neural network calculation tile - Google Patents

Neural network calculation tile Download PDF

Info

Publication number
JP6995851B2
JP6995851B2 JP2019522728A JP2019522728A JP6995851B2 JP 6995851 B2 JP6995851 B2 JP 6995851B2 JP 2019522728 A JP2019522728 A JP 2019522728A JP 2019522728 A JP2019522728 A JP 2019522728A JP 6995851 B2 JP6995851 B2 JP 6995851B2
Authority
JP
Japan
Prior art keywords
memory bank
data
calculation
unit
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019522728A
Other languages
Japanese (ja)
Other versions
JP2019537793A (en
Inventor
テマム,オリビエ
ナラヤナスワミ,ラビ
カイタン,ハーシット
ウ,ドン・ヒョク
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Google LLC
Original Assignee
Google LLC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Google LLC filed Critical Google LLC
Publication of JP2019537793A publication Critical patent/JP2019537793A/en
Priority to JP2021203544A priority Critical patent/JP7451483B2/en
Application granted granted Critical
Publication of JP6995851B2 publication Critical patent/JP6995851B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/544Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices for evaluating functions by calculation
    • G06F7/5443Sum of products
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/3001Arithmetic instructions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30036Instructions to perform operations on packed data, e.g. vector, tile or matrix operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3005Arrangements for executing specific machine instructions to perform operations for flow control
    • G06F9/30065Loop control instructions; iterative instructions, e.g. LOOP, REPEAT
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3824Operand accessing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/06Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
    • G06N3/063Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Neurology (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Memory System (AREA)
  • Advance Control (AREA)
  • Image Processing (AREA)
  • Complex Calculations (AREA)
  • Multi Processors (AREA)
  • Executing Machine-Instructions (AREA)

Description

背景
本明細書は一般に、命令帯域幅および命令メモリの低減を可能にするディープニューラルネットワーク(「DNN」)層の計算のためのニューラルネット計算タイルに関する。
Background The present specification generally relates to neural net calculation tiles for the calculation of deep neural network (“DNN”) layers that allow reduction of instruction bandwidth and instruction memory.

概要
一般に、この明細書に記載される主題の1つの革新的な局面は、テンソル計算を加速するための計算ユニットにおいて実施され得る。計算ユニットは、第1のデータ幅を有し、入力活性化または出力活性化のうちの少なくとも1つを格納するための第1のメモリバンクと、第1のデータ幅よりも大きい第2のデータ幅を有し、計算を実行する際に用いられる1つまたは複数のパラメータを格納するための第2のメモリバンクとを備える。計算ユニットはさらに、第2のメモリバンクからパラメータを受け取って計算を実行する少なくとも1つの積和(「MAC」)演算子を含む少なくとも1つのセルを備えてもよい。計算ユニットはさらに、少なくとも第1のメモリバンクとデータ通信する第1のトラバーサルユニットを備え、第1のトラバーサルユニットは、第1のメモリバンクに制御信号を与えて、MAC演算子によってアクセス可能なデータバスに入力活性化を与えるように構成される。計算ユニットは、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行し、1つまたは複数の計算は、MAC演算子によって実行され、部分的に、データバスから受け取られる入力活性化と第2のメモリバンクから受け取られるパラメータとの乗算演算を含む。
Overview In general, one innovative aspect of the subject matter described herein can be carried out in computational units for accelerating tensor computation. The compute unit has a first data width, a first memory bank for storing at least one of input activation or output activation, and a second data larger than the first data width. It has a width and includes a second memory bank for storing one or more parameters used when performing calculations. The compute unit may further include at least one cell containing at least one product-sum (“MAC”) operator that receives parameters from the second memory bank and performs the computation. The computing unit further comprises a first traversal unit that communicates data with at least the first memory bank, the first traversal unit providing control signals to the first memory bank and data accessible by the MAC operator. It is configured to give input activation to the bus. The compute unit performs one or more computations related to at least one element of the data array, and the one or more computations are performed by the MAC operator and, in part, the input activity received from the data bus. Includes a multiplication operation between the conversion and the parameters received from the second memory bank.

一般に、この明細書に記載される主題の別の革新的な局面は、テンソル計算を加速するための、コンピュータにより実施される方法において実施され得る。コンピュータにより実施される方法は、第1のデータ幅を有する第1のメモリバンクが第1のトラバーサルユニットから制御信号を受信したことに応答して、第1のメモリバンクによって第1の入力活性化を送ることを備え、第1のメモリバンクは、計算ユニット内に配置され、第1の入力活性化は、計算ユニットの少なくとも1つのセルによってアクセス可能なデータバスによって与えられる。方法はさらに、少なくとも1つのセルによって、第1のデータ幅よりも大きい第2のデータ幅を有する第2のメモリバンクから1つまたは複数のパラメータを受け取ることを備え、少なくとも1つのセルは少なくとも1つの積和(「MAC」)演算子を含む。方法はさらに、MAC演算子によって、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行することを備え、1つまたは複数の計算は、部分的に、データバスからアクセスされる少なくとも第1の入力活性化と第2のメモリバンクから受け取られる少なくとも1つのパラメータとの乗算演算を含む。 In general, another innovative aspect of the subject matter described herein can be carried out in a computer-implemented way to accelerate tensor calculations. The method performed by the computer is to activate the first input by the first memory bank in response to the first memory bank having the first data width receiving the control signal from the first traversal unit. The first memory bank is located within the computing unit and the first input activation is provided by a data bus accessible by at least one cell of the computing unit. The method further comprises receiving one or more parameters from a second memory bank having a second data width greater than the first data width by at least one cell, where at least one cell is at least one. Contains two multiply-accumulate ("MAC") operators. The method further comprises performing one or more computations related to at least one element of the data array by means of a MAC operator, the one or more computations being partially accessed from the data bus. Includes a multiplication operation of at least the first input activation and at least one parameter received from the second memory bank.

この明細書に記載される主題の別の革新的な局面は、非一時的コンピュータ可読記憶媒体において実施され得る。1つまたは複数のプロセッサによって実行可能な命令を含む非一時的コンピュータ可読記憶媒体であって、命令は、そのように実行されると、1つまたは複数のプロセッサに動作を実行させ、この動作は、第1のデータ幅を有する第1のメモリバンクが第1のトラバーサルユニットから制御信号を受け取ったことに応答して、第1のメモリバンクによって第1の入力活性化を送ることを含み、第1のメモリバンクは、計算ユニット内に配置され、第1の入力活性化は、計算ユニットの少なくとも1つのセルによってアクセス可能なデータバスによって与えられる。実行される動作はさらに、少なくとも1つのセルによって、第1のデータ幅よりも大きい第2のデータ幅を有する第2のメモリバンクから1つまたは複数のパラメータを受け取ることを含んでもよく、少なくとも1つのセルは少なくとも1つの積和(「MAC」)演算子を含む。実行される動作はさらに、MAC演算子によって、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行することを含んでもよく、1つまたは複数の計算は、部分的に、データバスからアクセスされる少なくとも第1の入力活性化と第2のメモリバンクから受け取られる少なくとも1つのパラメータとの乗算演算を含む。 Another innovative aspect of the subject matter described herein can be implemented in non-temporary computer-readable storage media. A non-temporary computer-readable storage medium containing instructions that can be executed by one or more processors, the instructions causing one or more processors to perform an operation when such an operation is performed. The first memory bank having the first data width comprises sending a first input activation by the first memory bank in response to receiving a control signal from the first traversal unit. One memory bank is located within the compute unit and the first input activation is provided by a data bus accessible by at least one cell of the compute unit. The operation performed may further include receiving one or more parameters from a second memory bank having a second data width larger than the first data width by at least one cell. A cell contains at least one multiply-accumulate ("MAC") operator. The operation performed may further include performing one or more calculations related to at least one element of the data array by means of a MAC operator, where the one or more calculations are in part data. Includes a multiplication operation of at least one input activation accessed from the bus and at least one parameter received from the second memory bank.

この明細書において記載される主題は、以下の利点の1つ以上を実現するように特定の実施の形態において実現することができる。レジスタを用いてメモリアドレス値を追跡することは、プログラムが、深くネスト化されたループを1つの命令で反復することを可能にする。単一の計算タイルにおいて幅狭メモリユニットおよび幅広メモリユニットからアクセス可能なテンソルは、レジスタから検索されるメモリアドレス値に基づいてトラバースされる。メモリアドレス値はテンソルの要素に対応する。テンソル計算は、深いループネストの実行に基づいて個々の計算タイルで生ずる。計算は複数のタイルにわたって分散できる。計算効率は、いくつかの計算タイルにわたって多層ニューラルネットワークのテンソル計算を分散することに基づいて向上および加速される。テンソルをトラバースし、テンソル計算を少ない命令数で実行できる。 The subject matter described herein can be realized in a particular embodiment so as to realize one or more of the following advantages: Tracking memory address values using registers allows a program to iterate through a deeply nested loop with a single instruction. Tensors accessible from narrow and wide memory units in a single calculation tile are traversed based on the memory address values retrieved from the registers. The memory address value corresponds to the element of the tensor. Tensor calculations occur on individual calculation tiles based on the execution of deep loop nesting. The calculation can be distributed across multiple tiles. Computational efficiency is improved and accelerated based on distributing tensor computations of multi-layer neural networks across several computational tiles. You can traverse tensors and perform tensor calculations with a small number of instructions.

この明細書において記載される主題は、他の利点を実現するように特定の実施の形態において実現することもできる。例えば、アドレス指定の柔軟性が多次元アレイを任意の順序でトラバースすることを可能にする、幅が狭い低帯域幅メモリを、高帯域幅の幅広メモリと結合するメモリ階層を採用することによって、非常に異なる次元のDNN層に対してMAC演算子の高い利用率を達成することができ、計算における局所性を最大限に活用することができる。 The subject matter described herein can also be realized in certain embodiments to realize other advantages. For example, by adopting a memory hierarchy that combines narrow, low-bandwidth memory with high-bandwidth, wide memory, which allows addressing flexibility to traverse multidimensional arrays in any order. High utilization of MAC operators can be achieved for DNN layers of very different dimensions, and locality in computation can be fully utilized.

この局面および他の局面の他の実現例は、計算機記憶装置上でエンコードされる、方法のアクションを実行するように構成される、対応のシステム、装置およびコンピュータプログラムを含む。1つ以上のコンピュータのシステムは、システムにインストールされ、動作でシステムにアクションを実行させるソフトウェア、ファームウェア、ハードウェアまたはそれらの組合せによってそのように構成することができる。1つ以上のコンピュータプログラムは、データ処理装置によって実行されたとき、装置にアクションを実行させる命令を有することによって、そのように構成することができる。 Other implementations of this aspect and other aspects include corresponding systems, devices and computer programs encoded on computer storage and configured to perform method actions. A system of one or more computers can be so configured by software, firmware, hardware or a combination thereof that is installed in the system and causes the system to perform actions in action. One or more computer programs can be configured as such by having instructions that cause the device to perform an action when executed by the data processing device.

本明細書に記載の主題は、画像認識および/または分類方法/システムにも関する。システムは、開示された技術、およびハードウェア計算ユニットまたは計算タイルを有する記載されたハードウェア計算システムを使用して実装することができる。計算ユニットは、複数のニューラルネットワーク層を有するニューラルネットワークを用いて推論を計算するためのテンソル計算を処理する。 The subject matter described herein also relates to image recognition and / or classification methods / systems. The system can be implemented using the disclosed technology and the described hardware calculation system with hardware calculation units or calculation tiles. The calculation unit processes a tensor calculation for computing inference using a neural network having a plurality of neural network layers.

この明細書に記載される主題の1つ以上の実現例の詳細は、添付の図面および以下の記載において述べられる。主題の他の潜在的な特徴、局面および利点は、記載、図面および特許請求の範囲から明らかになる。 Details of one or more implementations of the subject matter described herein are described in the accompanying drawings and in the description below. Other potential features, aspects and advantages of the subject will become apparent from the description, drawings and claims.

例示の計算システムのブロック図である。It is a block diagram of an exemplary calculation system. 例示的なニューラルネットワーク計算タイルを示す。An exemplary neural network calculation tile is shown. 例示的なテンソルトラバーサルユニット(TTU)構造を示す。An exemplary tensor traversal unit (TTU) structure is shown. 1つまたは複数の積和(MAC)演算子に入力活性化を与える幅狭メモリユニットを含む例示的アーキテクチャを示す。An exemplary architecture is shown that includes a narrow memory unit that provides input activation to one or more multiply-accumulate (MAC) operators. 図2および図4の幅狭メモリユニットに出力活性化を与える出力バスを含む例示的なアーキテクチャを示す。An exemplary architecture is shown that includes an output bus that provides output activation to the narrow memory units of FIGS. 2 and 4. 図2のニューラルネットワーク計算タイルを用いてテンソル計算を実行するためのプロセスの例示的なフローチャートである。It is an exemplary flowchart of a process for performing a tensor calculation using the neural network calculation tile of FIG.

さまざまな図面における同様の参照番号および指定は同様の要素を示す。
詳細な説明
本明細書に記載の主題は、ニューラルネットワーク層の機械学習推論作業負荷を加速するように構成された複数の計算ユニットを含むハードウェア計算システムに関する。ハードウェア計算システムの各計算ユニットは自己完結型であり、多層ニューラルネットワークの所与の層によって必要とされる計算を独立して実行することができる。
Similar reference numbers and designations in various drawings indicate similar elements.
Detailed Description The subject matter described herein relates to a hardware computational system containing multiple computational units configured to accelerate the machine learning inference workload of the neural network layer. Each computational unit in a hardware computational system is self-contained and can independently perform the computations required by a given layer of a multi-layer neural network.

複数の層を有するニューラルネットワークを用いて推論を計算することができる。例えば、入力が与えられると、ニューラルネットワークはその入力に対する推論を計算することができる。ニューラルネットワークは、ニューラルネットワークの各層を通って入力を処理することによって、この推論を計算する。特に、ニューラルネットワークの各層は、それぞれの重みのセットを有する。各層は入力を受け取り、その層に対する重みのセットに従って入力を処理して出力を生成する。 Inference can be calculated using a neural network with multiple layers. For example, given an input, the neural network can compute inferences for that input. The neural network computes this inference by processing the input through each layer of the neural network. In particular, each layer of the neural network has its own set of weights. Each layer receives an input and processes the input according to a set of weights for that layer to produce an output.

したがって、受け取った入力から推論を計算するために、ニューラルネットワークは入力を受け取り、推論を生成するために各ニューラルネットワーク層を通してそれを処理し、1つのニューラルネットワーク層からの出力が次のニューラルネットワーク層への入力として与えられる。ニューラルネットワーク層へのデータ入力、例えば、ニューラルネットワークへの入力、またはシーケンス内におけるその層の下の層の、あるニューラルネットワーク層への出力は、その層への活性化入力と呼ぶことができる。 Therefore, to compute an inference from the received input, the neural network receives the input, processes it through each neural network layer to generate the inference, and the output from one neural network layer is the next neural network layer. Given as an input to. Data inputs to a neural network layer, such as inputs to a neural network, or outputs of layers below that layer in a sequence to a neural network layer, can be referred to as activation inputs to that layer.

いくつかの実現例では、ニューラルネットワークの層はシーケンスで配置される。他の実現例では、層は有向グラフで配置される。つまり、任意の特定の層が複数の入力、複数の出力、またはそれらの両方を受け取ることができる。ニューラルネットワークの層は、ある層の出力を前の層への入力として送り返すことができるように構成することもできる。 In some implementations, the layers of the neural network are arranged in a sequence. In another implementation, the layers are arranged in a directed graph. That is, any particular layer can receive multiple inputs, multiple outputs, or both. The layers of a neural network can also be configured so that the output of one layer can be sent back as input to the previous layer.

本明細書に記載のハードウェア計算システムは、テンソル計算を複数の計算タイルにわたって分散させることによってニューラルネットワーク層の計算を実行することができる。ニューラルネットワーク層内で実行される計算プロセスは、入力活性化を含む入力テンソルと重みを含むパラメータテンソルとの乗算を含み得る。計算は、1つまたは複数のサイクルで入力活性化を重みと乗算すること、および多くのサイクルにわたって積の累積を実行することを含む。 The hardware computation system described herein can perform computations on the neural network layer by distributing the tensor computations across multiple computation tiles. Computational processes performed within the neural network layer may include multiplication of an input tensor containing input activations with a parameter tensor containing weights. The calculation involves multiplying the input activation by the weight in one or more cycles, and performing product accumulation over many cycles.

テンソルは多次元幾何学的オブジェクトであり、例示的な多次元幾何学的オブジェクトは行列およびデータアレイを含む。一般に、ソフトウェアアルゴリズムは、N次元テンソルをトラバースするために、ネスト化されたループを処理することによって、テンソル計算を実行するよう、計算タイルによって実行される。1つの例示的な計算プロセスでは、各ループは、N次元テンソルの特定の次元をトラバースすることを担当し得る。所与のテンソル構成体について、計算タイルは、特定のテンソルに関連する複数の内積計算を実行するためにそのテンソルの要素へのアクセスを必要とし得る。幅狭メモリ構造によって与えられる入力活性化が、幅広メモリ構造によって与えられるパラメータまたは重みで乗算されると、計算が行われる。テンソルはメモリに格納されるので、テンソルインデックスのセットはメモリアドレスのセットへの変換を必要とし得る。一般に、計算タイルのテンソルトラバーサルユニットは、テンソルに関連する各次元のインデックスと、インデックス要素がトラバースされて計算が実行される順序とを与える制御操作を実行する。乗算結果が出力バスに書き込まれてメモリに格納されると、テンソル計算は終了する。 Tensors are multidimensional geometric objects, and exemplary multidimensional geometric objects include matrices and data arrays. In general, software algorithms are performed by computational tiles to perform tensor calculations by processing nested loops to traverse N-dimensional tensors. In one exemplary computational process, each loop may be responsible for traversing a particular dimension of an N-dimensional tensor. For a given tensor construct, the calculation tile may require access to the elements of that tensor in order to perform multiple dot product calculations related to that tensor. Calculations are made when the input activation given by the narrow memory structure is multiplied by the parameters or weights given by the wide memory structure. Since the tensor is stored in memory, a set of tensor indexes may need to be translated into a set of memory addresses. In general, the tensor traversal unit of a calculation tile performs a control operation that gives the index of each dimension associated with the tensor and the order in which the index elements are traversed and the calculation is performed. The tensor calculation ends when the multiplication result is written to the output bus and stored in memory.

図1は、ディープニューラルネットワーク(DNN)に関連するテンソル計算を加速するための例示的な計算システム100のブロック図を示す。システム100は、一般に、コントローラ102、ホストインターフェース108、入出力(I/O)リンク110、第1のタイルセット112および第2のタイルセット114を含む複数のタイル、分類器部分116、ならびにバスマップ118において識別されるデータバス(明確にするために示されているがシステム100には含まれていない)を含む。コントローラ102は一般に、データメモリ104、命令メモリ106、およびコンピュータ可読記憶媒体にエンコードされた1つまたは複数の命令を実行するように構成された少なくとも1つのプロセッサを含む。命令メモリ106は、コントローラ102の1つまたは複数のプロセッサによって実行可能な1つまたは複数の機械可読命令を格納することができる。データメモリ104は、システム100内で発生する計算に関連する様々なデータを格納し、その後それらのデータにアクセスするための、様々なデータ記憶媒体のうちのいずれでもよい。 FIG. 1 shows a block diagram of an exemplary computational system 100 for accelerating tensor computations associated with deep neural networks (DNNs). The system 100 generally includes a controller 102, a host interface 108, an input / output (I / O) link 110, a plurality of tiles including a first tile set 112 and a second tile set 114, a classifier portion 116, and a bus map. Includes a data bus identified in 118 (shown for clarity but not included in system 100). The controller 102 generally includes a data memory 104, an instruction memory 106, and at least one processor configured to execute one or more instructions encoded in a computer-readable storage medium. The instruction memory 106 can store one or more machine-readable instructions that can be executed by one or more processors of the controller 102. The data memory 104 may be any of various data storage media for storing various data related to the calculation generated in the system 100 and then accessing the data.

コントローラ102は、命令メモリ106に格納されている命令を含む、システム100内のテンソル計算に関係する1つまたは複数の命令を実行するように構成されている。いくつかの実現例では、データメモリ104および命令メモリ106は揮発性メモリユニット(単数または複数)である。他のいくつかの実現例では、データメモリ104および命令メモリ106は不揮発性メモリユニット(単数または複数)である。データメモリ104および命令メモリ106はまた、フロッピー(登録商標)ディスク装置、ハードディスク装置、光ディスク装置、もしくはテープ装置、フラッシュメモリもしくは他の類似の固体メモリ装置、またはストレージエリアネットワークもしくは他の構成の装置を含む装置のアレイなど、別の形態のコンピュータ可読媒体であってもよい。様々な実現例では、コントローラ102は、コアマネージャ102として参照されるかまたはそのように呼ばれ得る。 The controller 102 is configured to execute one or more instructions related to the tensor calculation in the system 100, including the instructions stored in the instruction memory 106. In some implementations, the data memory 104 and the instruction memory 106 are volatile memory units (s). In some other implementations, the data memory 104 and the instruction memory 106 are non-volatile memory units (s). The data memory 104 and the instruction memory 106 may also include floppy (registered trademark) disk devices, hard disk devices, optical disk devices, or tape devices, flash memory or other similar solid-state memory devices, or storage area networks or devices of other configurations. It may be another form of computer-readable medium, such as an array of devices including. In various embodiments, the controller 102 may be referred to or so referred to as the core manager 102.

図示のように、ホストインターフェース108は、I/Oリンク110、コントローラ102、および分類器部分116に結合されている。ホストインターフェース108は、I/Oリンク110から命令およびデータパラメータを受け取り、命令およびパラメータをコントローラ102に与える。一般に、命令は命令バス124(後述)を介してシステム100内の1つまたは複数のデバイスに与えることができ、パラメータはリングバス128(後述)を介してシステム100内の1つまたは複数のデバイスに与えることができる。いくつかの実現例では、命令は初期時にホストインターフェース118からコントローラ102によって受け取られ、後のコントローラ102による実行のために命令メモリ106に格納される。 As shown, the host interface 108 is coupled to the I / O link 110, the controller 102, and the classifier portion 116. The host interface 108 receives instructions and data parameters from the I / O link 110 and gives the instructions and parameters to the controller 102. In general, instructions can be given to one or more devices in system 100 via instruction bus 124 (discussed below) and parameters can be given to one or more devices in system 100 via ring bus 128 (discussed below). Can be given to. In some implementations, the instruction is initially received by the controller 102 from the host interface 118 and stored in the instruction memory 106 for later execution by the controller 102.

分類器部分116は、同様に、コントローラ102および第2のタイルセット114のタイル7に結合されている。いくつかの実現例では、分類器部分116はシステム100内の別個のタイルとして実装される。代替の実現例では、分類器部分116は、コントローラ102のサブ回路またはサブデバイスとしてコントローラ102内に配置されるかまたは位置する。分類器部分116は一般に、全結合層の出力として受け取られる累積された活性化前値に対して1つまたは複数の関数を実行するように構成される。全結合層は、タイルセット112および114内のタイルにわたって分割されてもよい。したがって、各タイルは、タイルのメモリユニットに格納され得る活性化前値(すなわち線形出力)のサブセットを生成するように構成される。分類結果バス120は、分類器部分116からコントローラ102へのデータ経路を与える。関数後値(すなわち結果)を含むデータは、分類結果バス120を介して分類器部分116からコントローラ102に与えられる。 The classifier portion 116 is similarly coupled to the controller 102 and tile 7 of the second tile set 114. In some implementations, the classifier portion 116 is implemented as a separate tile within the system 100. In an alternative embodiment, the classifier portion 116 is located or located within the controller 102 as a subcircuit or subdevice of the controller 102. The classifier portion 116 is generally configured to perform one or more functions on the cumulative pre-activation values received as the output of the fully connected layer. The fully coupled layer may be divided across the tiles within the tile sets 112 and 114. Therefore, each tile is configured to generate a subset of pre-activation values (ie, linear output) that can be stored in the tile's memory unit. The classification result bus 120 provides a data path from the classifier portion 116 to the controller 102. The data including the post-function value (ie, result) is given from the classifier portion 116 to the controller 102 via the classification result bus 120.

バスマップ118は、第1のタイルセット112および第2のタイルセット114のタイル間に1つまたは複数の相互接続されたデータ通信経路を与えるデータバスを示す。バスマップ118は、図1に示すように、分類結果バス120、CSR/マスターバス122、命令バス124、メッシュバス126、およびリングバス128を識別するための使用符号の説明を与える。一般に、タイルはシステム100のアクセラレータアーキテクチャ内のコアコンポーネントであり、システム内で発生するテンソル計算の焦点である。各タイルは個々の計算ユニットであり、複数のタイルはシステム内の他のタイルと対話して多層ニューラルネットワークの1つまたは複数の層にわたる計算(例えばテンソル計算)を加速することができる。例えば、計算は複数のタイルにわたって分散されることができる。計算効率は、いくつかの計算タイルにわたって多層ニューラルネットワークのテンソル計算を分散することに基づいて向上および加速させることができる。タイルセット112、114内のタイルは所与の命令に関連するテンソル計算の実行を共有することができるが、個々の計算ユニットは、タイルセット112、114内の他の対応するタイルに対して独立してテンソル計算のサブセットを実行するように構成される自己完結型計算コンポーネントである。 Bus map 118 shows a data bus that provides one or more interconnected data communication paths between the tiles of the first tile set 112 and the second tile set 114. As shown in FIG. 1, the bus map 118 provides an explanation of codes used for identifying the classification result bus 120, the CSR / master bus 122, the command bus 124, the mesh bus 126, and the ring bus 128. In general, tiles are a core component within the accelerator architecture of system 100 and are the focus of tensor calculations that occur within the system. Each tile is an individual computational unit, and multiple tiles can interact with other tiles in the system to accelerate computations across one or more layers of a multi-layer neural network (eg, tensor computations). For example, the calculation can be distributed across multiple tiles. Computational efficiency can be improved and accelerated based on distributing tensor computations of multi-layer neural networks across several computational tiles. The tiles in tile sets 112, 114 can share the execution of tensor calculations associated with a given instruction, but the individual compute units are independent of the other corresponding tiles in tile sets 112, 114. It is a self-contained computational component configured to perform a subset of tensor computations.

制御および状態レジスタ(CSR)バス122は、プログラム構成を設定し、1つまたは複数のタイルに関連する状態レジスタを読み出す1つまたは複数の命令をコントローラ102が送ることを可能にする単一マスター複数スレーブバスである。CSRバス122は、1つのマスターバスセグメントと複数のスレーブバスセグメントとを有する単一のデイジーチェーン構成で接続することができる。図1に示すように、CSRバス122は、タイルセット112、114のタイルおよびコントローラ102をリング状でホストインターフェース110に接続するバスデータ経路を介して結合する通信を与える。いくつかの実現例では、ホストインターフェース110は、CSRバスリングの単一のマスターであり、CSRバスアドレス空間全体は、ホストインターフェース110内のメモリ空間にメモリマップされる。 The control and status register (CSR) bus 122 sets the program configuration and allows the controller 102 to send one or more instructions to read the status register associated with one or more tiles. It is a slave bus. The CSR bus 122 can be connected in a single daisy chain configuration with one master bus segment and a plurality of slave bus segments. As shown in FIG. 1, the CSR bus 122 provides communication that connects the tiles of the tile sets 112, 114 and the controller 102 via a bus data path connecting the tiles and the controller 102 in a ring to the host interface 110. In some implementations, the host interface 110 is the single master of the CSR bus ring, and the entire CSR bus address space is memory mapped to the memory space within the host interface 110.

CSRバス122は、例えば、コントローラ102が命令メモリ106から命令をフェッチすることを開始することを可能にするようにコントローラ102内のメモリバッファポインタをプログラミングすること、1つまたは複数の計算の間静的なままである様々なタイル設定(例:多項式近似計算のための係数表)を更新/プログラミングすること、および/または分類器部分116に対してファームウェアをロード/再ロードすることを含む1つ以上の動作を実行するためにホストインターフェース110によって使用され得る。一例では、ファームウェアの再ロードは、線形出力(すなわち、活性化前値)に適用されるべき新しい関数を含み得る。したがって、CSRバス122へのアクセスを有するすべてのスレーブは、そのスレーブに結び付けられてそれを識別する別個のノード識別子(ノードID)を有することになる。ノードIDは命令アドレスの一部であり、CSRパケットがスレーブにアドレス指定されているかどうかを判断するためにCSRスレーブ(すなわち、コントローラ102、タイル112、114および分類器116)によって使用、検査、または他の方法で調べられる。 The CSR bus 122 may, for example, program a memory buffer pointer in the controller 102 to allow the controller 102 to initiate fetching instructions from the instruction memory 106, statically during one or more operations. One that involves updating / programming various tile settings that remain in place (eg, a coefficient table for polynomial approximation calculations) and / or loading / reloading the firmware for classifier part 116. It can be used by the host interface 110 to perform the above operations. In one example, the firmware reload may include a new function to be applied to the linear output (ie, the pre-activation value). Therefore, every slave having access to the CSR bus 122 will have a separate node identifier (node ID) associated with and identifying it. The node ID is part of the instruction address and is used, inspected, or used by the CSR slave (ie, controller 102, tiles 112, 114 and classifier 116) to determine if the CSR packet is addressed to the slave. It can be examined by other methods.

いくつかの実現例では、1つまたは複数の命令をホストインターフェース102によってコントローラ102を介して送ることができる。命令は、例えば、最初の7ビットが、命令を受け取り実行することになっている命令アドレス/宛先を示すヘッダ情報を含む、32ビット幅であり得る。ヘッダの最初の7ビットは、特定のノードIDを表すデータパラメータを含み得る。したがって、CSRバスリング上のスレーブ(例えば各タイル)は、命令のヘッダを検査して、マスター(ホストインターフェース110)による要求がヘッダを検査するタイルにアドレス指定されているかどうかを判断することができる。宛先が検査タイルであることをヘッダのノードIDが示さない場合、検査タイルは、入力CSR命令パケットを、次のタイルによる検査のために、次のタイルに接続されるCSRバス入力にコピーする。 In some implementations, one or more instructions can be sent through the controller 102 by the host interface 102. The instruction may be, for example, 32 bits wide, with the first 7 bits containing header information indicating the instruction address / destination for which the instruction is to be received and executed. The first 7 bits of the header may contain data parameters representing a particular node ID. Therefore, a slave on the CSR busling (eg, each tile) can inspect the instruction header to determine if the request by the master (host interface 110) is addressed to the tile inspecting the header. .. If the node ID in the header does not indicate that the destination is the inspection tile, the inspection tile copies the input CSR instruction packet to the CSR bus input connected to the next tile for inspection by the next tile.

命令バス124は、コントローラ102から始まり、CSRバス122と同様に、タイルセット112、114内のタイルをリング状にコントローラ102に接続し戻すバスデータ経路を介して結合する通信を与える。一実現例では、コントローラ102は、命令バス124を介して1つまたは複数の命令をブロードキャストする。コントローラ102によってブロードキャストされる命令は、CSRバス122を介して与えられる命令とは異なり得る。しかしながら、バス124を介して受け取られる命令をタイルが受け取りおよび/または消費もしくは実行する態様は、CSRバス122を介して受け取られる命令を実行するためのプロセスと同様であり得る。 The instruction bus 124 starts from the controller 102 and, like the CSR bus 122, provides communication in which the tiles in the tile sets 112 and 114 are connected via a bus data path that connects the tiles in the tile set 112 and 114 back to the controller 102 in a ring shape. In one embodiment, the controller 102 broadcasts one or more instructions over the instruction bus 124. The instructions broadcast by the controller 102 may differ from the instructions given via the CSR bus 122. However, the mode in which the tile receives and / or consumes or executes the instructions received via the bus 124 may be similar to the process for executing the instructions received via the CSR bus 122.

一例では、命令のヘッダ(すなわち、ビットマップ)は、受信タイルに対して、その受信タイルが、その命令に関連するビットマップに基づいて特定の命令を消費する必要があることを示す。ビットマップは、ビットに関して定義された特定の幅を有し得る。命令は通常、命令のパラメータに基づいて1つのタイルから次のタイルへ転送される。一実現例では、命令バス124の幅は、命令のサイズ/幅よりも小さくなるように構成され得る。したがって、そのような構成では、命令の送信は数サイクルにわたって行われ、命令バス124のバスストップは、そのタイルに関連する適切なターゲット命令バッファにそのタイルで受け取られた命令を置くためのデコーダを有する。 In one example, the instruction header (ie, bitmap) indicates to the receive tile that the receive tile needs to consume a particular instruction based on the bitmap associated with that instruction. Bitmaps can have a specific width defined for a bit. Instructions are typically transferred from one tile to the next based on the parameters of the instruction. In one implementation, the width of the instruction bus 124 may be configured to be less than the size / width of the instruction. Therefore, in such a configuration, the transmission of instructions takes place over several cycles, and the bus stop of instruction bus 124 places a decoder to put the instructions received in that tile in the appropriate target instruction buffer associated with that tile. Have.

以下でさらに説明されるように、タイルセット112、114内のタイルは一般に、2つの広いカテゴリの命令をサポートするように構成される。2つの広いカテゴリは命令タイプとも呼ばれる。命令タイプは、テンソル演算(TensorOp)命令およびダイレクトメモリアクセス(DMAOp)命令を含む。いくつかの実現例では、DMAOp命令は、同時であることを許される1つまたは複数の特殊化を有する。1つまたは複数の特殊化は、DMAOp命令サブタイプまたはオペコードと呼ばれることがある。場合によっては、すべての固有のおよび/または有効なDMAOp命令タイプ/サブタイプタプルは、特定のタイル内に別々の命令バッファを有することになる。 As further described below, the tiles in tile sets 112, 114 are generally configured to support two broad categories of instructions. The two broad categories are also called instruction types. Instruction types include tensor operation (TensorOp) instructions and direct memory access (DMAOp) instructions. In some implementations, the DMAOp instruction has one or more specializations that are allowed to be simultaneous. One or more specializations may be referred to as DMAOp instruction subtypes or opcodes. In some cases, all unique and / or valid DMAOp instruction type / subtype tuples will have separate instruction buffers within a particular tile.

タイル112、114の特定のタイルにおいて、命令バス124に関連するバスストップは、ヘッダビットマップを調べて命令タイプ/サブタイプを判断する。命令は、タイルによって受け取られ、続いて、タイルによる命令の実行の前に、タイルの命令バッファに書き込まれてもよい。命令が書き込まれるタイルの命令バッファは、命令のタイプおよびサブタイプインジケータ/フィールドによって判断され得る。命令バッファは、1つまたは複数の関連する命令の消費を優先させる先入れ先出し(FIFO)制御方式を含み得る。したがって、このFIFO制御方式の下では、同じタイプ/サブタイプの命令は、命令が命令バスに到着した順序で常に実行されることになる。 At a particular tile of tiles 112, 114, the bus stop associated with the instruction bus 124 examines the header bitmap to determine the instruction type / subtype. Instructions may be received by the tile and subsequently written to the tile's instruction buffer prior to execution of the instruction by the tile. The instruction buffer of the tile on which the instruction is written can be determined by the instruction type and subtype indicator / field. The instruction buffer may include a first-in first-out (FIFO) control scheme that prioritizes the consumption of one or more related instructions. Therefore, under this FIFO control scheme, instructions of the same type / subtype will always be executed in the order in which the instructions arrive on the instruction bus.

タイル内の異なる命令バッファは、TensorOp命令バッファおよびDMAOp命令バッファである。上記のように、命令タイプはTensorOp命令とDMAOp命令とを含む。DMAOp命令に関して、命令サブタイプ(「書き込み先」バッファ位置を示す)には以下が含まれる:1)メッシュインバウンド命令バッファ;2)メッシュアウトバウンド命令バッファ;3)幅狭‐幅広DMA命令バッファ;4)幅広‐幅狭DMA命令バッファ;および5)リングバスDMA命令バッファ。これらのバッファ位置は、図2を参照して以下により詳細に説明される。本明細書を通して幅広指定および幅狭指定が使用されており、一般に、1つまたは複数のメモリユニットのおおよその幅のサイズ(ビット/バイト)を指す。本明細書で用いられるとき、「幅狭」は、各々が16ビット未満のサイズまたは幅を有する1つまたは複数のメモリユニットを指し得、「幅広」は、各々が64ビット未満のサイズまたは幅を有する1つまたは複数のメモリユニットを指し得る。 The different instruction buffers in the tile are the TensorOp instruction buffer and the DMAOp instruction buffer. As mentioned above, the instruction type includes a TensorOp instruction and a DMAOp instruction. For DMAOp instructions, instruction subtypes (indicating the "write destination" buffer position) include: 1) mesh inbound instruction buffer; 2) mesh outbound instruction buffer; 3) narrow-wide DMA instruction buffer; 4) Wide-narrow DMA instruction buffer; and 5) Ringbus DMA instruction buffer. These buffer positions are described in more detail below with reference to FIG. Wide and narrow specifications are used throughout the specification and generally refer to the approximate width size (bits / bytes) of one or more memory units. As used herein, "narrow" may refer to one or more memory units, each having a size or width of less than 16 bits, and "wide" means a size or width, each less than 64 bits. Can refer to one or more memory units with.

メッシュバス126は、CSRバス122、命令バス124、およびリングバス128(後述)とは異なるデータ通信経路を与える。図1に示すように、メッシュバス126は、XおよびY次元の両方において各タイルをその対応する近隣タイルに結合または接続する通信経路を与える。様々な実現例では、メッシュバス126を用いて、近接するタイルにおける1つまたは複数の幅狭メモリユニット間で入力活性化量を移送することができる。示されるように、メッシュバス126は、入力活性化データを近接していないタイルに直接転送することを可能にしない。 The mesh bus 126 provides a data communication path different from that of the CSR bus 122, the command bus 124, and the ring bus 128 (described later). As shown in FIG. 1, mesh bus 126 provides a communication path that joins or connects each tile to its corresponding neighbor tile in both the X and Y dimensions. In various implementations, the mesh bus 126 can be used to transfer the amount of input activation between one or more narrow memory units in adjacent tiles. As shown, mesh bus 126 does not allow input activation data to be transferred directly to non-proximity tiles.

様々な実現例において、メッシュバス126およびメッシュバス126を介して接続される様々なタイルは以下の構成を有してもよい。メッシュの4つのコーナータイルには、2つのアウトバウンドポートおよび2つのインバウンドポートがある。メッシュの4つのエッジタイルには、3つのインバウンドポートおよび3つのアウトバウンドポートがある。すべての非エッジ、非コーナータイルには、4つのインバウンドポートおよび4つのアウトバウンドポートがある。一般に、N×Nタイルレイアウトの例では、エッジタイルはわずか3つの近隣タイルを有するタイルであり、コーナータイルは2つの近隣タイルを有するタイルである。メッシュバス126を介したデータフロー方法論に関して、一般に、特定のタイルに関してメッシュバス126を介して到着するすべての入力活性化は、そのタイルの1つまたは複数の幅狭メモリユニットにコミットされなければならない。さらに、4つより少ないインバウンドポートを有するタイル構成の場合、DMAOp命令は、存在しない入力ポート上でデータを待つ代わりに、タイルの幅狭メモリ内の位置にゼロ値を書き込んでもよい。同様に、4つよりも少ないアウトバウンドポートを有するタイル構成の場合、DMAOp命令は、存在しないポートに対する転送に関連する幅狭メモリ読出およびポート書込を実行しない。 In various implementations, the mesh bus 126 and the various tiles connected via the mesh bus 126 may have the following configurations. The four corner tiles of the mesh have two outbound ports and two inbound ports. The four edge tiles of the mesh have three inbound ports and three outbound ports. All non-edge, non-corner tiles have 4 inbound ports and 4 outbound ports. In general, in the NxN tile layout example, an edge tile is a tile with only three neighbor tiles and a corner tile is a tile with two neighbor tiles. For data flow methodologies over the mesh bus 126, in general, all input activations arriving via the mesh bus 126 for a particular tile must be committed to one or more narrow memory units in that tile. .. Further, for tile configurations with less than four inbound ports, the DMAOp instruction may write a zero value to a location in the tile's narrow memory instead of waiting for data on a nonexistent input port. Similarly, for tile configurations with less than four outbound ports, the DMAOp instruction does not perform transfer-related narrow memory reads and port writes to non-existent ports.

いくつかの実現例では、特定の入力活性化が書き込まれる、または読み出されることになる幅狭メモリユニットの位置またはアドレスは、メッシュバス126を介して与えられるインバウンド/アウトバウンドDMAOpに基づいてテンソルトラバーサルユニット(以下、「TTU」)によって生成されることになる。インバウンドDMAOpおよびアウトバウンドDMAOpは同時に実行されてもよく、必要な同期はコントローラ102によって管理される同期フラグ制御方式によって管理されることになる。TTUは、図2および図3を参照して以下でさらに詳細に説明される。 In some implementations, the location or address of the narrow memory unit to which a particular input activation will be written or read is a tensor traversal unit based on the inbound / outbound DMAOp given via the mesh bus 126. (Hereinafter, "TTU") will be generated. The inbound DMAOp and the outbound DMAOp may be executed at the same time, and the required synchronization will be managed by the synchronization flag control method managed by the controller 102. The TTU will be described in more detail below with reference to FIGS. 2 and 3.

リングバス128は、コントローラ102から始まり、CSRバス122および命令バス124と同様に、タイル112、114をリング状にコントローラ102に接続し戻すバスデータ経路を介して結合する通信を与える。様々な実現例では、リングバス128は、一般に、すべてのタイル112、114内のすべての幅広メモリユニット(図2を参照して以下により詳細に説明される)を接続または結合する。したがって、リングバス128のペイロード幅は、タイルセット112、114の各タイル内に配置された幅広メモリユニットの幅に対応する。上述のように、リングバス128も、リングバス128を介して通信される命令またはパラメータを含むペイロードデータを消費する必要があるタイルを示すビットマップヘッダを含む。 The ring bus 128 starts from the controller 102 and, like the CSR bus 122 and the command bus 124, provides communication that connects the tiles 112 and 114 via a bus data path that connects the tiles 112 and 114 back to the controller 102 in a ring shape. In various implementations, the ring bus 128 generally connects or joins all wide memory units (discussed in more detail below with reference to FIG. 2) in all tiles 112, 114. Therefore, the payload width of the ring bus 128 corresponds to the width of the wide memory unit arranged in each tile of the tile sets 112 and 114. As mentioned above, the ring bus 128 also includes a bitmap header indicating the tiles that need to consume payload data, including instructions or parameters communicated over the ring bus 128.

リングバス128を介して特定のタイルで受け取られるデータ(すなわちペイロード)に関しては、情報の受信に応答して、各タイルは、受信タイルに固有のビットマップヘッダに示される位置データをゼロに(すなわちクリア)してから、そのデータを別のタイルに転送する。したがって、ヘッダビットマップが、ペイロードを受け取ることになっている特定のタイルを示す残りのビットセットデータを有さないとき、別のタイルへのペイロードの転送は停止することになる。ペイロードデータは、一般に、深くネスト化されたループの実行に基づいて実行されるテンソル計算中に1つまたは複数のタイルによって用いられる活性化および重みを指す。 For data (ie, payload) received at a particular tile via the ring bus 128, in response to receiving information, each tile zeros the position data shown in the bitmap header specific to the receiving tile (ie). Clear) and then transfer the data to another tile. Therefore, when the header bitmap has no remaining bitset data indicating the particular tile for which the payload is to be received, the transfer of the payload to another tile will stop. Payload data generally refers to activations and weights used by one or more tiles during a tensor calculation performed based on the execution of a deeply nested loop.

いくつかの実現例では、コントローラ102は、リングバス128の一部であると説明され得る。一例では、特定のタイル内で実行されるDMAOp命令について、コントローラ102を用いて、リングバスストップからデータ/ペイロードをポップし、そのペイロードをリング内の次のタイル内のリングバスストップに転送してもよい。コントローラ102はさらに、ビットマップヘッダ内の命令によって必要とされる場合には、ペイロードデータをタイルの1つまたは複数の幅広メモリユニットにコミットさせることができる。データを書き込む必要がある1つまたは複数の幅広メモリユニットのアドレスは、特定のタイル内でDMAOp命令によって生成されてもよい。 In some implementations, the controller 102 may be described as part of the ring bus 128. In one example, for a DMAOp instruction executed within a particular tile, the controller 102 is used to pop the data / payload from the ring bus stop and transfer that payload to the ring bus stop in the next tile in the ring. May be good. The controller 102 can further commit payload data to one or more wide memory units in the tile, if required by instructions in the bitmap header. The address of one or more wide memory units that need to write data may be generated by the DMAOp instruction within a particular tile.

様々な実現例では、タイルセット112、114の各タイルは、ペイロードデータのプロデューサまたはペイロードデータのコンシューマのいずれかであることができる。タイルがペイロードデータのプロデューサである場合、タイルは、それの幅広メモリユニットのうちの1つまたは複数からデータを読み出し、そのデータを1つまたは複数の他のタイルによる消費のためにリングバス128を介してマルチキャストする。タイルがペイロードデータのコンシューマである場合、タイルはデータを受け取り、そのタイル内の1つまたは複数の幅広メモリユニットに書き込み、そのペイロードデータを1つまたは複数の他のタイルによる消費のために転送する。リングバス128を介したペイロードデータの移動に関しては、通常、任意の所与の時間においてリングバス128上にはデータのプロデューサ/マスターは1つだけである。すべてのタイルにおけるDMAOp命令実行順序(例えば、FIFO制御方式)は、所与の時間にリングバス128上にデータのプロデューサ/マスターが1つだけ存在することを保証するであろう。 In various implementations, each tile of tile sets 112, 114 can be either a producer of payload data or a consumer of payload data. If the tile is the producer of payload data, the tile reads data from one or more of its wide memory units and puts the ring bus 128 for consumption by one or more other tiles. Multicast via. If a tile is a consumer of payload data, the tile receives the data, writes it to one or more wide memory units within that tile, and transfers the payload data for consumption by one or more other tiles. .. With respect to the transfer of payload data through the ring bus 128, there is usually only one producer / master of data on the ring bus 128 at any given time. The DMAOp instruction execution order (eg, FIFO control scheme) in all tiles will ensure that there is only one producer / master of data on the ring bus 128 at a given time.

いくつかの実現例では、コントローラ102は、同期フラグ制御アーキテクチャを用いて、所与の時間にリングバス128上にペイロードデータのプロデューサ/マスターが1つだけ存在することを保証する。一例では、タイルによるリング出力への書込ごとに、対応する同期フラグカウントの増分がトリガされることになる。コントローラ102は、ペイロードデータを調べて、ペイロードを含むデータチャンクまたはセグメントの数を判断することができる。次にコントローラ102は、タイルによる実行を監視して、他のタイルがマスターモードで実行する前に、予想された数のデータセグメントがそのタイルによって転送および/または消費されることを保証する。 In some implementations, the controller 102 uses a synchronization flag control architecture to ensure that there is only one producer / master of payload data on the ring bus 128 at a given time. In one example, each write to the ring output by the tile will trigger the corresponding increment of the sync flag count. The controller 102 can examine the payload data to determine the number of data chunks or segments that contain the payload. The controller 102 then monitors the execution by the tile to ensure that the expected number of data segments are transferred and / or consumed by that tile before the other tiles execute in master mode.

リングバス128上に重複領域を持たない、リングバス128を介して接続されるローカルマルチキャストグループがある場合、リングバス128上には所与の時間にデータのプロデューサ/マスターが1つだけであることを保証することに例外が生じる。例えば、タイル0(マスター)は、タイル0~タイル3のグループ化におけるあるタイルにマルチキャスト(すなわち、データを生成)し、タイル4(マスター)は、タイル4~タイル7のグループ化におけるあるタイルに対して同じことを行い得る。このデュアルマスターマルチキャスト方法の重要な要件は、パケットの重複が発生し、1つまたは複数のデータ計算エラーを引き起こす可能性があるため、異なるマルチキャストグループが互いのデータパケットを参照できないようにすることである。 If there is a local multicast group on the ring bus 128 that has no overlapping space and is connected over the ring bus 128, then there is only one data producer / master on the ring bus 128 at a given time. There are exceptions to guaranteeing. For example, tile 0 (master) multicasts (ie, generates data) to a tile in the grouping of tiles 0 to 3, and tile 4 (master) to a tile in the grouping of tiles 4 to 7. You can do the same for it. An important requirement of this dual-master multicast method is to prevent different multicast groups from referencing each other's data packets, as packet duplication can occur and cause one or more data calculation errors. be.

図1に示すように、コントローラ102は、タイルセット112、114内のタイルをI/O110に結合または接続する通信データ経路を提供し、いくつかのコア機能を含む。コントローラ102のコア機能は、一般に、1つまたは複数のI/O入力活性化をタイルセット112、114内のタイルに供給すること、I/O110から受け取られる1つまたは複数の入力活性化およびパラメータをタイルに供給すること、I/O110から受け取られる1つまたは複数の命令をタイルに供給すること、I/O出力活性化をホストインターフェース108に送ること、ならびにCSRバス122およびリングバス128に対してリングストップとして機能することを含む。以下により詳細に説明するように、第1のタイルセット112および第2のタイルセット114は各々、内側ループおよび外側ループからなる深いループネストに基づいて実行される1つまたは複数のテンソル計算を実行するために用いられる複数のタイルを含む。 As shown in FIG. 1, the controller 102 provides a communication data path for coupling or connecting tiles in tile sets 112, 114 to the I / O 110 and includes several core functions. The core function of the controller 102 is generally to supply one or more I / O input activations to the tiles in the tileset 112, 114, one or more input activations and parameters received from the I / O 110. To the tile, to feed the tile one or more instructions received from the I / O 110, to send the I / O output activation to the host interface 108, and to the CSR bus 122 and the ring bus 128. Includes functioning as a ring stop. As described in more detail below, the first tileset 112 and the second tileset 114 perform one or more tensor calculations performed based on deep loop nesting consisting of inner and outer loops, respectively. Includes multiple tiles used to do this.

システム100は一般に次のように動作する。ホストインターフェース108は、所与の計算に対して発生するダイレクトメモリアクセス動作(DMAOp)を定義する1つまたは複数の命令をコントローラ102に与える。コントローラ102に供給される命令に関連する記述子は、多次元データアレイ(テンソル)に関連する大規模内積計算を容易にするためにコントローラによって必要とされる情報を含むことになる。一般に、コントローラ102は、ニューラルネットワークの所与の層に対してテンソル計算を実行するために、ホストインターフェース108から、入力活性化、タイル命令、およびモデルパラメータ(すなわち、重み)を受け取る。次に、コントローラ102は、命令によって定義されるデータフロー方式で命令をタイル112、114にマルチキャストさせることができる。上述のように、命令を消費するタイルは、次いで、命令ヘッダ内のビットマップデータに基づいて別のタイルへの新たな/後続の命令のブロードキャストを開始することができる。 The system 100 generally operates as follows. The host interface 108 gives the controller 102 one or more instructions that define the direct memory access operation (DMAOp) that occurs for a given calculation. The descriptors associated with the instructions supplied to the controller 102 will contain the information required by the controller to facilitate large-scale dot product calculations associated with the multidimensional data array (tensor). In general, the controller 102 receives input activations, tile instructions, and model parameters (ie, weights) from the host interface 108 to perform tensor calculations on a given layer of neural network. The controller 102 can then multicast the instruction to tiles 112, 114 in the data flow scheme defined by the instruction. As mentioned above, a tile that consumes an instruction can then start broadcasting a new / subsequent instruction to another tile based on the bitmap data in the instruction header.

データフローに関して、入力活性化およびパラメータは、リングバス128を介してタイルセット112、114のタイルに送られる。タイル112、114の各々は、その特定のタイルに割り当てられる、出力活性化のサブセットを計算するのに必要な入力活性化のサブセットを格納することになる。タイルに対するDMAOp命令は入力活性化を幅広メモリから幅狭メモリへ移動させる。タイル内の計算は、必要な入力活性化、パラメータ/重み、および計算命令(TTU操作、メモリアドレスなど)がタイルで利用可能になったときに開始される。タイル内で生じる計算は、タイル内のMAC演算子(後述)が命令セットによって定義されたすべての内積演算を完了し、活性化前関数が乗算演算の結果(すなわち積和値)に適用されると、終了する。 With respect to the data flow, the input activation and parameters are sent to the tiles of tile sets 112, 114 via the ring bus 128. Each of the tiles 112, 114 will store a subset of the input activations required to calculate the subset of output activations assigned to that particular tile. The DMAOp instruction for the tile moves the input activation from wide memory to narrow memory. Computations within the tile begin when the required input activations, parameters / weights, and calculation instructions (TTU operations, memory addresses, etc.) are available on the tile. For the computations that occur in the tile, the MAC operator in the tile (discussed below) completes all the inner product operations defined by the instruction set, and the preactivation function is applied to the result of the multiplication operation (ie, the product- sum value ). And finish.

1つまたは複数のテンソル計算の結果は、計算を実行するタイルの幅狭メモリユニットに計算層の出力活性化を書き込むことを含む。あるテンソル計算では、メッシュバス126を介して近隣のタイルへの出力エッジ活性化の転送があることになる。近隣のタイルへの出力エッジ活性化の転送は、計算が複数の層にわたる場合に後続の層のために出力活性化を計算するために必要とされる。すべての層に対する計算が完了すると、DMAOpは、リングバス128を介して最終的な活性化を分類器タイル116に移動させる。次に、コントローラ102は、分類器タイル116から最終活性化を読み出し、DMAOpを実行して最終活性化をホストインターフェース108に移動させる。いくつかの実現例では、分類器部分116は、NNの出力層(すなわち最後の層)の計算を実行する。他の実現例では、NNの出力層は、分類器層、回帰層、または一般にニューラルネットワークに関連する別の層タイプのうちの1つである。 The result of one or more tensor computations involves writing the output activation of the compute layer to the narrow memory unit of the tile performing the computation. In one tensor calculation, there will be an output edge activation transfer to neighboring tiles via the mesh bus 126. Transferring the output edge activation to neighboring tiles is required to calculate the output activation for subsequent layers if the calculation spans multiple layers. When the calculations for all layers are complete, DMAOp transfers the final activation to the classifier tile 116 via the ring bath 128. The controller 102 then reads the final activation from the classifier tile 116 and executes DMAOp to move the final activation to the host interface 108. In some implementations, the classifier portion 116 performs the calculation of the output layer (ie, the last layer) of the NN. In another embodiment, the output layer of the NN is one of a classifier layer, a regression layer, or another layer type generally associated with neural networks.

図2は、例示的なニューラルネットワーク(NN)計算タイル200を示す。一般に、例示的なタイル200は、図1を参照して上述した第1のタイルセット112および第2のタイルセット114内の任意のタイルに対応し得る。様々な実現例では、計算タイル200はまた、計算ユニット200として参照されるか、またはそう呼ばれることがある。各計算タイル200は、タイルセット112、114内の他の対応するタイルに対して独立して命令を実行するように構成された自己完結型計算ユニットである。上で簡単に説明したように、各計算タイル200は2つのタイプの命令、TensorOp命令およびDMAOp命令を実行する。一般に、各命令タイプは深いループネストに関連する計算操作を含み、したがって各命令タイプは一般に、すべてのループ反復の完了を確実にするために、複数の時間エポックにわたって実行されることになる。 FIG. 2 shows an exemplary neural network (NN) calculation tile 200. In general, the exemplary tile 200 may correspond to any tile in the first tile set 112 and the second tile set 114 described above with reference to FIG. In various implementations, the compute tile 200 may also be referred to or so referred to as the compute unit 200. Each calculation tile 200 is a self-contained calculation unit configured to execute instructions independently for other corresponding tiles in the tile sets 112, 114. As briefly described above, each calculation tile 200 executes two types of instructions, the TensorOp instruction and the DMAOp instruction. In general, each instruction type involves computational operations associated with deep loop nesting, so each instruction type will generally be executed over multiple time epochs to ensure the completion of all loop iterations.

以下により詳細に論じられるように、異なる命令タイプは、計算タイル200内で管理される同期フラグ制御を介してデータ上で同期する計算タイル200内の独立した制御ユニットによって実行される。同期フラグ制御は、計算タイル200内における異なる命令タイプの実行間の同時性を管理する。各命令タイプに関連する各計算操作は厳密な発行順序(すなわち先入れ先出し)で実行される。2つの命令タイプ、TensorOPおよびDMAOpに関し、これらの異なる命令タイプ間に順序付け保証はなく、各タイプは計算タイル200によって別々の制御スレッドとして扱われる。 As discussed in more detail below, the different instruction types are performed by independent control units within the calculation tile 200 that synchronize on the data via synchronization flag control managed within the calculation tile 200. The synchronization flag control manages the concurrency between executions of different instruction types within the calculation tile 200. Each computational operation associated with each instruction type is performed in a strict issue order (ie, first in, first out). For the two instruction types, TensorOP and DMAOp, there is no ordering guarantee between these different instruction types, and each type is treated as a separate control thread by calculation tile 200.

データフロー構成に関して、計算タイル200は一般に、計算タイル200に出入りするデータフローのための通信経路を各々が与えるデータ経路202およびデータ経路205を含む。上述のように、システム100は、リング構成でレイアウトされた3つの異なるデータバス構造、すなわちCSRバス122、命令バス124、およびリングバス128を含む。図2を参照して、データ経路205は命令バス124に対応し、データ経路202は一般にCSRバス122およびリングバス128のうちの1つに対応する。示されるように、データ経路202は、計算タイル200を出るデータのための出力経路を与えるリング出力203と、計算タイル200に入るデータのための入力経路を与えるリング入力204とを含む。 With respect to the data flow configuration, the calculation tile 200 generally includes a data path 202 and a data path 205, each of which provides a communication path for data flows in and out of the calculation tile 200. As mentioned above, the system 100 includes three different data bus structures laid out in a ring configuration, namely the CSR bus 122, the instruction bus 124, and the ring bus 128. With reference to FIG. 2, the data path 205 corresponds to the command bus 124, and the data path 202 generally corresponds to one of the CSR bus 122 and the ring bus 128. As shown, the data path 202 includes a ring output 203 that provides an output path for data exiting the calculation tile 200 and a ring input 204 that provides an input path for data entering the calculation tile 200.

計算タイル200は、TensorOpテンソルトラバーサルユニット(TTU)226を含むTensorOp制御206と、DMAOpTTU228を含むDMAOp制御208とをさらに含む。TensorOp制御206は、一般に、TensorOpTTUレジスタ232への書込およびTensorOpTTUレジスタ232からの読出を管理し、TensorOpTTU226による実行のためのトラバース操作を管理する。同様に、DMAOp制御208は一般に、DMAOpTTUレジスタ234への書込およびDMAOpTTUレジスタ234からの読出を管理し、DMAOpTTU228による実行のためのトラバース操作を管理する。TTUレジスタ232は、TensorOp制御206による命令の実行でTensorOpTTU226によって実行されるべき操作を含む1つまたは複数の命令を格納するための命令バッファを含む。同様に、TTUレジスタ234は、DMAOp制御208による命令の実行でTTU228によって実行されるべき操作を含む1つまたは複数の命令を格納するための命令バッファを含む。 The calculation tile 200 further includes a TensorOp control 206 including a TensorOp tensor traversal unit (TTU) 226 and a DMAOp control 208 including a DMAOpTTU228. The TensorOp control 206 generally manages writes to the TensorOpTTU register 232 and reads from the TensorOpTTU register 232 and manages traverse operations for execution by the TensorOpTTU226. Similarly, the DMAOp control 208 generally manages writes to the DMAOpTTU register 234 and reads from the DMAOpTTU register 234, and manages traverse operations for execution by the DMAOpTTU 228. The TTU register 232 includes an instruction buffer for storing one or more instructions including an operation to be performed by the TensorOpTTU226 in the execution of an instruction by the TensorOp control 206. Similarly, the TTU register 234 includes an instruction buffer for storing one or more instructions including an operation to be performed by the TTU 228 in the execution of an instruction by DMAOp control 208.

以下でさらに説明されるように、TTU226および/または228は、計算タイル200によって用いられて、一般に幅狭メモリ210および幅広メモリ212に常駐する1つまたは複数のテンソルのアレイ要素をトラバースする。いくつかの実現例では、TTU226は、TensorOp制御206によって用いられて、深いループネストの実行に基づいて多次元テンソルの次元をトラバースするためのテンソル演算を与える。 As further described below, the TTU 226 and / or 228 are used by compute tiles 200 to traverse array elements of one or more tensors, typically residing in narrow memory 210 and wide memory 212. In some implementations, the TTU226 is used by the TensorOp control 206 to provide a tensor operation to traverse the dimensions of a multidimensional tensor based on the execution of deep loop nesting.

いくつかの実現例では、計算タイル200による実行のためのある命令は、データ経路205(すなわち命令バス124の一部)を介してタイルに到着する。計算タイル200はヘッダビットマップを調べて命令タイプ(TensorOpまたはDMAOp)および命令サブタイプ(読出動作または書込動作)を判断する。計算タイル200によって受け取られた命令は、続いて、命令タイプに応じて特定の命令バッファに書き込まれる。一般に、命令は、計算タイル200のコンポーネントによる命令の実行の前に受け取られ格納される(すなわち、バッファに書き込まれる)。図2に示すように、命令バッファ(すなわち、TensorOpTTUレジスタ232およびDMAOpTTUレジスタ234)は各々、1つまたは複数の関連する命令の消費(実行)を優先する先入れ先出し(FIFO)制御方式を含むことができる。 In some implementations, an instruction for execution by the calculation tile 200 arrives at the tile via the data path 205 (ie, part of the instruction bus 124). The calculation tile 200 examines the header bitmap to determine the instruction type (TensorOp or DMAOp) and the instruction subtype (read or write operation). The instructions received by the calculation tile 200 are subsequently written to a particular instruction buffer, depending on the instruction type. In general, instructions are received and stored (ie, written to a buffer) prior to the execution of the instruction by the components of calculation tile 200. As shown in FIG. 2, each instruction buffer (ie, TensorOpTTU register 232 and DMAOpTTU register 234) can include a first in, first out (FIFO) control scheme that prioritizes the consumption (execution) of one or more related instructions. ..

簡単に上述したように、テンソルは多次元幾何学的オブジェクトであり、例示的な多次元幾何学的オブジェクトは行列およびデータアレイを含む。深くネスト化されたループを含むアルゴリズムを計算タイル200によって実行して、1つ以上のネスト化されたループを反復してN次元テンソルをトラバースすることによって、テンソル計算を実行してもよい。1つの例示的な計算プロセスでは、ループネストの各ループは、N次元テンソルの特定の次元をトラバースすることを担当し得る。本明細書に記載されるように、TensorOp制御206は、一般に、特定のテンソル構成体の次元要素をトラバースし、およびそれにアクセスして深いネスト化されたループによって定義される計算を完成させるシーケンスを駆動する1つまたは複数のテンソル演算を管理する。 Briefly as described above, tensors are multidimensional geometric objects, and exemplary multidimensional geometric objects include matrices and data arrays. An algorithm containing deeply nested loops may be performed by calculation tile 200 to perform tensor calculations by iterating over one or more nested loops and traversing the N-dimensional tensor. In one exemplary computational process, each loop in a loop nest may be responsible for traversing a particular dimension of an N-dimensional tensor. As described herein, the TensorOp control 206 typically traverses the dimensional elements of a particular tensor construct and accesses them to complete the computation defined by the deeply nested loops. Manage one or more tensor operations to drive.

計算タイル200は、幅狭メモリ210および幅広メモリ212をさらに含む。狭幅および広幅の指定は、一般に、幅狭メモリ210および幅広メモリ212のメモリユニットの幅のサイズ(ビット/バイト)を指す。いくつかの実現例では、幅狭メモリ210は、各々16ビット未満のサイズまたは幅を有するメモリユニットを含み、幅広メモリ212は、各々32ビット未満のサイズまたは幅を有するメモリユニットを含む。一般に、計算タイル200はデータ経路205を介して入力活性化を受け取り、DMA制御208は入力活性化を幅狭メモリ210に書き込むよう動作を実行する。同様に、計算タイル200はデータ経路202を介してパラメータ(重み)を受け取り、DMA制御208はパラメータを幅広メモリ212に書き込むよう動作を実行する。いくつかの実現例では、幅狭メモリ210は、各メモリサイクルに対して、どの制御装置(例えば、TensorOp制御206またはDMAOp制御208)が幅狭メモリ210の共有メモリユニットにアクセスすることを許可されるかを判断するために共有メモリシステムで通常用いられるメモリアービタを含み得る。 The calculation tile 200 further includes a narrow memory 210 and a wide memory 212. The narrow and wide designation generally refers to the width size (bits / bytes) of the memory units of the narrow memory 210 and the wide memory 212. In some embodiments, the narrow memory 210 comprises a memory unit each having a size or width of less than 16 bits, and the wide memory 212 comprises a memory unit each having a size or width less than 32 bits. In general, the calculation tile 200 receives the input activation via the data path 205 and the DMA control 208 performs an operation to write the input activation to the narrow memory 210. Similarly, the calculation tile 200 receives the parameter (weight) via the data path 202, and the DMA control 208 performs an operation to write the parameter to the wide memory 212. In some implementations, the narrow memory 210 is allowed any controller (eg, TensorOp control 206 or DMAOp control 208) to access the shared memory unit of the narrow memory 210 for each memory cycle. It may include a memory arbiter commonly used in shared memory systems to determine if it is.

計算タイル200はさらに、入力活性化バス216と、各々がMAC演算子215および合計レジスタ220を含む複数のセルを含むMACアレイ214とを含む。一般に、MACアレイ214は、複数のセルにわたってMAC演算子215および合計レジスタ220を用いて、内積計算に関係する算術演算を含むテンソル計算を実行する。入力活性化バス216は、入力活性化が、幅狭メモリ210によって、MACアレイ214の各MAC演算子215によるそれぞれのアクセスに対して1つずつ与えられる、データ経路を与える。したがって、入力活性化の1つずつのブロードキャストに基づいて、特定のセルの単一のMAC演算子215が各々入力活性化を受け取ることになる。MACアレイ214のMAC演算子によって実行される算術演算は、一般に、幅狭メモリ210によって与えられる入力活性化を幅広メモリ212からアクセスされるパラメータと乗算して単一の出力活性化値を生成することを含む。 The calculation tile 200 further includes an input activation bus 216 and a MAC array 214 each containing a plurality of cells including a MAC operator 215 and a sum register 220. In general, the MAC array 214 uses the MAC operator 215 and the sum register 220 across a plurality of cells to perform tensor calculations, including arithmetic operations related to inner product calculations. The input activation bus 216 provides a data path in which input activation is provided by the narrow memory 210, one for each access by each MAC operator 215 of the MAC array 214. Therefore, on the basis of one broadcast of the input activation, each single MAC operator 215 in a particular cell will receive the input activation. Arithmetic operations performed by the MAC operator of the MAC array 214 typically multiply the input activation given by the narrow memory 210 by the parameters accessed from the wide memory 212 to produce a single output activation value. Including that.

算術演算中に、部分和を累積し、対応する、例えば合計レジスタ220に格納するか、または幅広メモリ212に書き込み、MACアレイ214の特定のセルによって再アクセスして、後続の乗算演算を完了してもよい。テンソル計算は、第1の部分と第2の部分とを有するものとして説明することができる。第1の部分は、例えば入力活性化とパラメータとの乗算を完了して積和値を生成することによって乗算演算が積和値を生成すると完了する。第2の部分は、積和値への非線形関数の適用を含み、第2の部分は、関数の適用後に出力活性化が幅狭メモリ210に書き込まれると完了する。 During an arithmetic operation, the partial sums are accumulated and stored in the corresponding, eg, total register 220, or written to wide memory 212 and re-accessed by a particular cell in MAC array 214 to complete subsequent multiplication operations. You may. The tensor calculation can be described as having a first part and a second part. The first part is completed when the multiplication operation generates the product-sum value by, for example, completing the multiplication of the input activation and the parameter to generate the product- sum value . The second part includes the application of the nonlinear function to the sum of products value , and the second part is completed when the output activation is written to the narrow memory 210 after the application of the function.

計算タイル200はさらに、出力バス218、出力活性化パイプライン224を含む非線形ユニット(NLU)222、NLU制御238、および計算タイル200内のコンポーネントのコア属性を示す参照マップ230を含む。明確にするために参照マップ230が示されているが、計算タイル200には含まれていない。コア属性には、特定のコンポーネントが、ユニット、記憶装置、演算子、制御装置、またはデータ経路であるかどうかが含まれる。一般に、テンソル計算の第1の部分が完了すると、積和値がMACアレイ214から出力バス218を介してNLU222に与えられる。NLU222に到着した後、活性化パイプライン224を介して受け取られる、活性化関数を特定するデータが積和値に適用され、次いで、出力活性化は幅狭メモリ210に書き込まれる。いくつかの実現例では、出力バス218は、少なくとも1つのパイプライン化されたシフトレジスタ236を含み、テンソル計算の第2の部分を完了することは、ス218のシフトレジスタ236を用いて積和値非線形ユニット222に向けてシフトすることを含む。 Computation tile 200 further includes an output bus 218, a nonlinear unit (NLU) 222 including an output activation pipeline 224, an NLU control 238, and a reference map 230 showing the core attributes of the components within the calculation tile 200. Reference map 230 is shown for clarity, but is not included in calculation tile 200. Core attributes include whether a particular component is a unit, storage device, operator, controller, or data path. Generally, when the first part of the tensor calculation is completed, the sum-of-product value is given to the NLU222 from the MAC array 214 via the output bus 218. After arriving at NLU222, the data identifying the activation function received via the activation pipeline 224 is applied to the product-sum value , and then the output activation is written to the narrow memory 210. In some implementations, the output bus 218 includes at least one pipelined shift register 236, and completing the second part of the tensor calculation uses the shift register 236 of the bus 218. Includes shifting the sum-of-product value towards the non- linear unit 222 .

例えば、単一の計算タイル200についての、2つの多次元データアレイの内積計算に関して、MACアレイ214は、ロバストな単一命令複数データ(SIMD)機能を与える。SIMDは、一般に、すべての並列ユニット(複数のMAC演算子215)が(深いループネストに基づいて)同じ命令を共有するが、各MAC演算子215は異なるデータ要素上で命令を実行することを意味する。1つの基本的な例では、配列[1,2,3,4]および[5,6,7,8]を要素ごとに加算して1つのサイクルで配列[6,8,10,12]を取得するには、通常、各要素で演算を実行するために4つの算術演算ユニットが必要となる。SIMDを用いることによって、4つのユニットは同じ命令(例えば、「加算」)を共有し、計算を並列して実行することができる。命令が共有されるので、命令帯域幅および命令メモリに対する要件が低減され、それにより効率が向上する。したがって、システム100および計算タイル200は、テンソル計算において従来の方法よりも向上した加速および並列処理を与える。 For example, with respect to the inner product calculation of two multidimensional data arrays for a single calculation tile 200, the MAC array 214 provides robust single instruction multiple data (SIMD) functionality. SIMD generally states that all parallel units (multiple MAC operators 215) share the same instruction (based on deep loop nesting), but each MAC operator 215 executes the instruction on different data elements. means. In one basic example, the arrays [1,2,3,4] and [5,6,7,8] are added element by element to form the array [6,8,10,12] in one cycle. To get it, you usually need four arithmetic units to perform the operation on each element. By using SIMD, the four units can share the same instruction (eg, "addition") and perform calculations in parallel. Since the instructions are shared, the requirements for instruction bandwidth and instruction memory are reduced, which improves efficiency. Therefore, the system 100 and the calculation tile 200 provide improved acceleration and parallel processing over the conventional method in tensor calculation.

一例では、そして以下でより詳細に説明されるように、単一の命令が、複数のMACアレイ214による消費のために、コントローラ102によって複数の計算タイル200(図1のタイルセット112、114を参照)に与えられ得る。一般に、ニューラルネットワーク層は複数の出力ニューロンを含むことができ、出力ニューロンは、出力ニューロンのサブセットに関連するテンソル計算がタイルセット112、114の特定のタイルに割り当てられることができるように、分割されることができる。次いで、タイルセット112、114の各タイルは、所与の層について、異なるニューロンのグループ上で、関連するテンソル計算を実行することができる。したがって、計算タイル200は、少なくとも2つの形態の並列処理を与えることができる:1)1つの形態は、タイルセット112、114の複数のタイルの間で(出力ニューロンのサブセットに対応する)出力活性化を分割することを含み;2)他の形態は、タイルセット112、114のタイル間の分割に基づく出力ニューロンの複数のサブセットの(単一の命令による)同時計算を含む。 In one example, and as described in more detail below, a single instruction may generate multiple computational tiles 200 (tile sets 112, 114 of FIG. 1) by the controller 102 due to consumption by the plurality of MAC arrays 214. See). In general, a neural network layer can contain multiple output neurons, which are divided so that tensor calculations related to a subset of output neurons can be assigned to specific tiles in tilesets 112, 114. Can be done. Each tile of tile sets 112, 114 can then perform related tensor calculations on different groups of neurons for a given layer. Thus, the computational tile 200 can provide at least two forms of parallel processing: 1) One form is the output activity (corresponding to a subset of output neurons) among multiple tiles of tile sets 112, 114. 2) Other forms include simultaneous computation (by a single instruction) of multiple subsets of output neurons based on the division between tiles of tile sets 112, 114.

図3は、各々が8の深さを有する、追跡すべき4つのテンソルを含む例示的なテンソルトラバーサルユニット(TTU)構造300を示す。TTU300は一般に、カウンタテンソル302、ストライドテンソル304、初期テンソル306、および制限テンソル308を含む。TTU300はさらに、加算器バンク310およびテンソルアドレスインデックス312を含む。上述のように、テンソルは多次元幾何学的オブジェクトであり、テンソルの要素にアクセスするためには、各次元のインデックスが与えられなければならない。テンソルは幅狭メモリ210および幅広メモリ212に格納されるので、テンソルインデックスのセットをメモリアドレスのセットに変換しなければならない。いくつかの実現例では、インデックスのメモリアドレスへの変換は、メモリアドレスをインデックスの線形結合にし、テンソルアドレスインデックス312を介してアドレスを反映させることによって行われる。 FIG. 3 shows an exemplary tensor traversal unit (TTU) structure 300 containing four tensors to be tracked, each with a depth of eight. The TTU 300 generally includes a counter tensor 302, a stride tensor 304, an initial tensor 306, and a limiting tensor 308. The TTU 300 further includes an adder bank 310 and a tensor address index 312. As mentioned above, a tensor is a multidimensional geometric object and must be given an index for each dimension in order to access the elements of the tensor. Since the tensor is stored in the narrow memory 210 and the wide memory 212, the set of tensor indexes must be translated into the set of memory addresses. In some implementations, the conversion of an index to a memory address is done by making the memory address a linear combination of the indexes and reflecting the address via the tensor address index 312.

制御スレッドごとにTTUがあり、計算タイル200においては命令タイプごとに制御スレッド(TensorOPおよびDMAOp)がある。したがって、上述のように、計算タイル200には2組のTTUがある:1)TensorOpTTU226;および2)DMAOpTTU228。様々な実現例において、TensorOp制御206は、特定のテンソル演算の開始時にTTU300にTensorOpTTUカウンタ302、制限308、ストライド値304をロードさせ、命令がリタイアされる前にレジスタ値を変更しない。2つのTTUの各々は、計算タイル200において以下のメモリアドレスポートのためにアドレスを生成する必要があることになる:1)幅広メモリ212アドレスポート、および2)4つのアドレスポートとして提示される4つの独立した調停されたバンクを有する幅狭メモリ210。 There is a TTU for each control thread, and in the calculation tile 200 there is a control thread (TensorOP and DMAOp) for each instruction type. Therefore, as mentioned above, the calculation tile 200 has two sets of TTUs: 1) TensorOpTTU226; and 2) DMAOpTTU228. In various implementations, the TensorOp control 206 causes the TTU 300 to load the TensorOpTTU counter 302, limit 308, stride value 304 at the start of a particular tensor operation and does not change the register value before the instruction is retired. Each of the two TTUs will need to generate an address for the following memory address ports in calculation tile 200: 1) wide memory 212 address port, and 2) presented as 4 address ports 4 Narrow memory 210 with two independent arbitrated banks.

上述のように、いくつかの実現例では、幅狭メモリ210は、各メモリサイクルに対して、どの制御装置(例えば、TensorOp制御206またはDMAOp制御208)が幅狭メモリ210の共有メモリ資源にアクセスすることを許可されるかを判断するために共有メモリシステムで通常用いられるメモリアービタを含み得る。一例では、異なる命令タイプ(TensorOpおよびDMAOp)は、調停が必要な、メモリアクセスを要求する独立した制御スレッドである。特定の制御スレッドがテンソル要素をメモリにコミットすると、その制御スレッドはメモリにコミットされたテンソルレファレンスのカウンタ302を増分する。 As mentioned above, in some implementations, the narrow memory 210 has access to the shared memory resource of the narrow memory 210 by which controller (eg, TensorOp control 206 or DMAOp control 208) for each memory cycle. It may include a memory arbiter commonly used in shared memory systems to determine if it is allowed to do so. In one example, the different instruction types (TensorOp and DMAOp) are independent control threads that require arbitration and require memory access. When a particular control thread commits a tensor element to memory, that control thread increments the tensor reference counter 302 committed to memory.

一例では、TensorOp制御206がテンソルの特定の要素にアクセスするための命令を実行すると、TTU300はテンソルの特定の要素のアドレスを判断することができ、制御206はストレージ、例えば幅狭メモリ210にアクセスして、特定の要素の活性化値を表すデータを読み出し得る。いくつかの実現例では、プログラムはネスト化されたループを含むことができ、制御206は、ネスト化されたループに関連する現在のインデックス変数値に従って、ネスト化されたループ内で二次元アレイ変数の要素にアクセスするよう、命令を実行することができる。 In one example, when the TensorOp control 206 executes an instruction to access a particular element of the tensor, the TTU 300 can determine the address of a particular element of the tensor, and the control 206 accesses storage, eg, narrow memory 210. Then, the data representing the activation value of a specific element can be read out. In some implementations, the program can include nested loops, and control 206 is a two-dimensional array variable within the nested loop according to the current index variable value associated with the nested loop. Instructions can be executed to access the elements of.

TTU300は、所与のテンソルについて最大X数のTTU行に対して同時にトラバーサル状態を保持してもよい。TTU300に同時に常駐する各テンソルは、専用のハードウェアテンソル制御記述子を占有する。ハードウェア制御記述子は、行位置ごとにX数のTTUカウンタ302、ストライド304、および行次元ごとに最大X数のTTUカウンタを有するテンソルをサポートする制限レジスタ308からなることができる。いくつかの実現例では、行数および行あたりのカウンタ数は異なり得る。 The TTU 300 may simultaneously maintain a traversal state for up to X TTU rows for a given tensor. Each tensor resident in the TTU 300 at the same time occupies a dedicated hardware tensor control descriptor. The hardware control descriptor can consist of an X-number TTU counter 302 per row position, a stride 304, and a limit register 308 supporting a tensor with a maximum X-number TTU counter per row dimension. In some implementations, the number of rows and the number of counters per row can be different.

所与の位置レジスタについて、最終メモリアドレスは、位置レジスタをともに加算することを含む加算演算から計算される。ベースアドレスはカウンタ302に組み込まれる。同じメモリ内に常駐するテンソルレファレンスのために、1つ以上の加算器が共有される。一実現例では、サイクル内の任意の所与のポート上には単一のロード/ストアしか存在できないため、同じ幅狭メモリまたは幅広メモリ内に存在する複数のテンソルレファレンスがそれらのカウンタを任意の所与のサイクルで増分されないこと確実にすることがループネスト制御の機能となる。オフセット値の判断を含むメモリアクセスアドレス値を計算するためのレジスタの使用は、2016年2月3日に出願された「マトリックス処理装置(Matrix Processing Apparatus)」と題する特許出願連続番号第15/014,265号により詳細に記載されており、その全体をここに明示的に引用により援用する。 For a given position register, the final memory address is calculated from an addition operation involving adding the position registers together. The base address is incorporated in the counter 302. One or more adders are shared for a tensor reference that resides in the same memory. In one implementation, there can only be a single load / store on any given port in the cycle, so multiple tensor references residing in the same narrow or wide memory can cause those counters to be arbitrary. It is the function of loop nesting control to ensure that it is not incremented in a given cycle. The use of registers to calculate memory access address values, including the determination of offset values, is described in patent application serial number 15/014, entitled "Matrix Processing Appliance", filed February 3, 2016. , 265, which is expressly incorporated herein by reference in its entirety.

例えば、ソフトウェアアルゴリズムがN次元テンソルを処理するとき、各ループがN次元テンソルの各次元をトラバースする役割を果たす、ネスト化されたループが用いられてもよい。多次元テンソルは、行列または多次元行列であり得る。N次元テンソルの各次元は1つまたは複数の要素を含むことができ、各要素はそれぞれのデータ値を格納することができる。例えば、テンソルはプログラム内の変数であり得、変数は三次元を有し得る。第1の次元は300個の要素の長さを有してもよく、第2の次元は1000個の要素の長さを有してもよく、第3の次元は20個の要素の長さを有してもよい。 For example, when a software algorithm processes an N-dimensional tensor, nested loops may be used in which each loop serves to traverse each dimension of the N-dimensional tensor. The multidimensional tensor can be a matrix or a multidimensional matrix. Each dimension of the N-dimensional tensor can contain one or more elements, and each element can store its own data value. For example, a tensor can be a variable in a program, and the variable can have three dimensions. The first dimension may have a length of 300 elements, the second dimension may have a length of 1000 elements, and the third dimension may have a length of 20 elements. May have.

ネスト化されたループ内でテンソルをトラバースすることは、要素の対応するデータ値をロードまたは格納するために要素のメモリアドレス値の計算を必要とし得る。たとえば、forループはネスト化されたループであり、3つのループインデックス変数で追跡される3つのループをネスト化して3次元テンソルをトラバースすることができる。場合によっては、プロセッサは、内側ループのループ境界を外側ループインデックス変数で設定するなど、ループ境界条件を実行する必要があり得る。例えば、ネストされたループの最も内側のループを出るかどうかを判断する際に、プログラムは、最も内側のループのループインデックス変数の現在値と、ネストされたループの最も外側のループのループインデックス変数の現在値とを比較してもよい。 Traversing a tensor within a nested loop may require the calculation of the element's memory address value to load or store the element's corresponding data value. For example, a for loop is a nested loop, and three loops tracked by three loop index variables can be nested to traverse a 3D tensor. In some cases, the processor may need to execute a loop boundary condition, such as setting the loop boundary of the inner loop with an outer loop index variable. For example, when deciding whether to exit the innermost loop of a nested loop, the program may use the current value of the loop index variable of the innermost loop and the loop index variable of the outermost loop of the nested loop. You may compare it with the current value of.

一般に、計算タイルの処理ユニットがテンソルの特定の要素にアクセスするための命令を実行すると、テンソルトラバーサルユニットはテンソルの特定の要素のアドレスを判断し、処理ユニットが記憶媒体(メモリ)にアクセスして特定の要素の値を表すデータを読み出せるようにする。例えば、プログラムはネスト化されたループを含むことができ、処理ユニットは、命令を実行して、ネスト化されたループに関連する現在のインデックス変数値に従って、ネスト化されたループ内において二次元アレイ変数の要素にアクセスすることができる。ネスト化されたループに関連する現在のインデックス変数値に基づいて、テンソルトラバーサルユニットは、二次元アレイ変数の第1の要素からのオフセットを表すオフセット値を判断し得る。処理ユニットは、次いで、オフセット値を用いてメモリから二次元アレイ変数の特定の要素にアクセスする。 In general, when a processing unit in a compute tile executes an instruction to access a particular element of a tensor, the tensor traversal unit determines the address of a particular element in the tensor, and the processing unit accesses the storage medium (memory). Allows you to read data that represents the value of a particular element. For example, a program can contain a nested loop, where the processing unit executes an instruction and follows a two-dimensional array within the nested loop according to the current index variable value associated with the nested loop. You can access the elements of the variable. Based on the current index variable value associated with the nested loop, the tensor traversal unit may determine the offset value that represents the offset from the first element of the 2D array variable. The processing unit then uses the offset value to access certain elements of the 2D array variable from memory.

以下は、特殊化されたTTU300をインスタンス化するために用いられてもよいテンプレートパラメータを与える。1)X数のTTU行;2)行ごとのX数のTTUカウンタ;3)X数のTTU加算器ユニット;4)TTU行ごとに、共有される加算器参照を示す;および5)カウンタごとにXカウンタサイズ[TTU][行][深さ]を示す。すべてのTTUレジスタはアーキテクチャ上可視である。計算のためにアクセスされる必要がある特定のテンソル要素のアドレス(すなわちテンソルアドレス312)は、カウンタの加算の結果である。増分信号が制御スレッドからTTUの行に発行されると、TTU300は単一のサイクル動作を実行し、最も内側の次元をその次元のストライド304によって増分し、そしてすべての深さを通してロールオーバーを伝播する。 The following provide template parameters that may be used to instantiate the specialized TTU300. 1) X-number TTU rows; 2) X-number TTU counters per row; 3) X-number TTU adder units; 4) Shows shared adder references for each TTU row; and 5) Per counter Indicates the X counter size [TTU] [row] [depth]. All TTU registers are architecturally visible. The address of the particular tensor element that needs to be accessed for the calculation (ie, the tensor address 312) is the result of counter addition. When an increment signal is issued from the control thread to a row of TTUs, the TTU 300 performs a single cycle operation, increments the innermost dimension by the stride 304 of that dimension, and propagates the rollover through all depths. do.

一般に、TTU300は、1つまたは複数のテンソルに関連する状態を判断する。状態は、ループ境界値、現在のループインデックス変数値、メモリアドレス値を計算するための次元乗数、および/または分岐ループ境界を処理するためのプログラムカウンタ値を含むことができる。TTU300は、1つまたは複数のテンソル状態要素と算術論理ユニットとを含むことができる。テンソル状態要素の各々は、記憶要素、例えばレジスタまたは他の任意の好適な記憶回路であり得る。いくつかの実現例では、テンソル状態要素は、特許出願連続番号第15/014,265号にさらに詳細に記載されているように、物理的または論理的に異なるグループに構成されてもよい。 In general, the TTU 300 determines a state associated with one or more tensors. The state can include a loop boundary value, the current loop index variable value, a dimensional multiplier for calculating the memory address value, and / or a program counter value for processing the branch loop boundary. The TTU 300 can include one or more tensor state elements and an arithmetic logic unit. Each of the tensor state elements can be a storage element, such as a register or any other suitable storage circuit. In some implementations, the tensor state elements may be organized into physically or logically different groups, as described in more detail in patent application serial number 15/014,265.

図4は、活性化404を入力バス216を介して1つまたは複数の積和(MAC)演算子にブロードキャストする幅狭メモリ210を含む例示的なアーキテクチャを示す。シフトレジスタ404は、MACセル410内の1つまたは複数のMAC演算子215による受け取りのために活性化404が一度に1つずつ入力バス216に送出されるシフト機能を与える。一般に、MAC演算子215を含むMACセル410は、部分和を計算する計算セルとして定義することができ、いくつかの実現例では、部分和データを出力バス218に書き込むように構成されている。示されるように、セル410は、1つまたは複数のMAC演算子からなってもよい。一実現例では、MACセル410内のMAC演算子215の数は、セルの発行幅と呼ばれる。一例として、二重発行セルは、(幅狭メモリ210からの)2つの活性化値と(幅広メモリ212からの)2つのパラメータとの乗算を計算し2つ乗数の結果と現在の部分和との間で加算を実行できる2つのMAC演算子を有するセルを指す。 FIG. 4 shows an exemplary architecture that includes a narrow memory 210 that broadcasts activation 404 to one or more multiply-accumulate (MAC) operators via input bus 216. The shift register 404 provides a shift function in which the activation 404 is sent to the input bus 216 one at a time for receipt by one or more MAC operators 215 in the MAC cell 410. In general, the MAC cell 410 including the MAC operator 215 can be defined as a calculated cell for calculating the partial sum, and in some implementations it is configured to write the partial sum data to the output bus 218. As shown, cell 410 may consist of one or more MAC operators. In one implementation, the number of MAC operators 215 in the MAC cell 410 is called the cell issue width. As an example, a double-issued cell calculates the multiplication of two activation values (from narrow memory 210) and two parameters (from wide memory 212) and combines the result of the two multipliers with the current partial sum. Refers to a cell with two MAC operators that can perform addition between.

上述のように、入力バス216は、線形ユニット(すなわち、MACアレイ214)のMAC演算子215に入力活性化を与えるブロードキャストバスである。いくつかの実現例では、同じ入力がすべてのMAC演算子215の間で共有される。入力バス216の幅は、所与のMACアレイ214についてブロードキャスト入力を対応する数のセルに供給するのに十分に広くなければならない。入力バス216の構造を説明するために以下の例を考察する。線形ユニット内のセルの数が4に等しく、活性化幅が8ビットに等しいとき、入力バス216は、サイクルごとに最大4つの入力活性化を与えるように構成することができる。この例では、MACアレイ214内のすべてのセルは、ブロードキャストされる4つの活性化のうちの1つのみにアクセスするであろう。 As mentioned above, the input bus 216 is a broadcast bus that provides input activation to the MAC operator 215 of the linear unit (ie, MAC array 214). In some implementations, the same input is shared among all MAC operators 215. The width of the input bus 216 must be wide enough to supply the corresponding number of cells with broadcast inputs for a given MAC array 214. The following example will be considered to illustrate the structure of the input bus 216. When the number of cells in the linear unit is equal to 4 and the activation width is equal to 8 bits, the input bus 216 can be configured to give up to 4 input activations per cycle. In this example, all cells in the MAC array 214 will access only one of the four broadcast activations.

計算タイル200によって受け取られる命令のTensorOpフィールド設定に基づいて、MACアレイ214のセルは、同じ入力活性化を用いて計算を実行する必要があり得る。これは、MACアレイ214のセル内のZout分割と呼ばれてもよい。同様に、セル内のZin分割は、MACアレイ214のセルが計算を実行するために異なる活性化を必要とするときに生じる。前者の場合、単一の入力活性化は4回複製され、幅狭メモリ210から読み出された4つの活性化が4サイクルにわたってブロードキャストされる。後者の場合、幅狭メモリ210の読出がサイクルごとに必要とされる。前述の例では、TensorOp制御206は、コントローラ102から受け取られる命令の実行に基づいてこのブロードキャスト方法をオーケストレーションする。 Based on the instruction's TensorOp field setting received by the calculation tile 200, the cells of the MAC array 214 may need to perform the calculation with the same input activation. This may be referred to as a Zout split within the cell of the MAC array 214. Similarly, Zin splitting within a cell occurs when the cell of MAC array 214 requires a different activation to perform the calculation. In the former case, a single input activation is replicated four times and the four activations read from the narrow memory 210 are broadcast over four cycles. In the latter case, reading of the narrow memory 210 is required for each cycle. In the above example, the TensorOp control 206 orchestrate this broadcast method based on the execution of instructions received from the controller 102.

図5は、図2および図4の幅狭メモリユニット210に出力活性化を与えるための出力バス218を含む例示的なアーキテクチャを示す。一般に、計算タイル200内のMACアレイ214の各MACセル215は、異なる出力活性化を計算する。しかしながら、出力特徴アレイに関して、出力特徴深さが計算タイル200内のMACセル215の数より少ない場合、セルは1つまたは複数のセルグループを形成するようにグループ化されてもよい。セルグループ内のすべてのMACセル215は、同じ出力を(すなわち、出力特徴マップについて)計算するが、各セルは、Zin次元のサブセットに対応する、出力のサブセットを計算するにすぎない。その結果、MACセル215の出力は、ここでは、最終的な線形出力ではなく、部分和である。いくつかの実現例では、NLU222は、NLU制御238によってNLU222に与えられる制御信号に基づいてこれらの部分和を最終線形出力に集約する。 FIG. 5 shows an exemplary architecture that includes an output bus 218 to provide output activation to the narrow memory units 210 of FIGS. 2 and 4. In general, each MAC cell 215 of the MAC array 214 in calculation tile 200 calculates different output activations. However, for an output feature array, if the output feature depth is less than the number of MAC cells 215 in the calculation tile 200, the cells may be grouped to form one or more cell groups. All MAC cells 215 in a cell group compute the same output (ie, for an output feature map), but each cell only computes a subset of outputs that correspond to a subset of Zin dimensions. As a result, the output of MAC cell 215 is here a partial sum, not the final linear output. In some implementations, NLU222 aggregates these partial sums into a final linear output based on the control signal given to NLU222 by NLU control 238.

上述のように、出力バス218はパイプライン化されたシフトレジスタである。様々な実現例では、テンソル計算の第1の部分が終了し、TensorOp制御206が(命令を実行することによって)部分和を書き出す必要があることを示すと、出力バス218に与えられる部分和の並列ロードがあることになる。並列ロードの数は、計算タイル200内のMACセルの数に対応することになる。TensorOp制御206は、次いで、部分和量をシフトアウトさせ、非線形パイプラインを介して送らせる。いくつかの実現例では、タイル内のすべてのMACセルが実際に計算を実行するために利用されるわけではない状況があり得る。このような状況では、出力バスにシフトされるすべての部分和が有効になるわけではないことになる。この例では、TensorOp制御206は、MACアレイ214に制御信号を与えて、シフトアウトされるべき有効セルの数を示してもよい。出力バス218にロードされる並列ロード量は依然として計算タイル内のMACセルの数に対応するが、有効値のみがシフトアウトされて幅狭メモリ210にコミットされることになる。 As mentioned above, the output bus 218 is a pipelined shift register. In various implementations, the first part of the tensor calculation is finished, indicating that the TensorOp control 206 needs to write out the partial sum (by executing the instruction), the partial sum given to the output bus 218. There will be parallel loads. The number of parallel loads will correspond to the number of MAC cells in the calculation tile 200. The TensorOp control 206 then shifts out the partial sum and feeds it through the non-linear pipeline. In some implementations, there may be situations where not all MAC cells in the tile are actually used to perform the calculation. In such a situation, not all partial sums that are shifted to the output bus will be valid. In this example, the TensorOp control 206 may provide a control signal to the MAC array 214 to indicate the number of valid cells to be shifted out. The amount of parallel load loaded on the output bus 218 still corresponds to the number of MAC cells in the calculation tile, but only the valid values will be shifted out and committed to the narrow memory 210.

図6は、図2のニューラルネットワーク計算タイルを200用いてテンソル計算を実行するためのプロセス600の例示的なフローチャートである。プロセス600はブロック602で始まり、計算タイル200の幅狭メモリ210は入力活性化データバス216に活性化を1つずつ送る(すなわちブロードキャストする)。活性化値は、幅狭メモリ210に格納される。幅狭メモリ210は、入力量にアクセスするための特定のメモリ位置へのアドレス指定を許可するスタティックランダムアクセスメモリ(SRAM)バンクの集まりであり得る。幅狭メモリ210から読み出された活性化は、入力活性化バス216を介して、複数のMAC演算子215および合計レジスタ220を含むMACアレイ214(すなわち、線形ユニット)の線形セルにブロードキャストされる。プロセス600のブロック604で、計算タイル200のMAC演算子215は各々2つの入力を受け取り、1つの入力(活性化)は入力活性化バス216から受け取られ;別の入力(パラメータ)は幅広メモリ212から受け取られる。したがって、活性化は、各MAC演算子215の入力のうちの1つを供給し、MACアレイ214のセル内の各MAC演算子215は幅広メモリ212からそれらの第2の乗数入力を得る。 FIG. 6 is an exemplary flow chart of process 600 for performing a tensor calculation using the 200 neural network calculation tiles of FIG. The process 600 starts at block 602 and the narrow memory 210 of the calculation tile 200 sends (ie, broadcasts) activations one by one to the input activation data bus 216. The activation value is stored in the narrow memory 210. The narrow memory 210 may be a collection of static random access memory (SRAM) banks that allow addressing to specific memory locations to access the amount of input. The activation read from the narrow memory 210 is broadcast via the input activation bus 216 to the linear cells of the MAC array 214 (ie, the linear unit) containing the plurality of MAC operators 215 and the sum register 220. .. At block 604 of process 600, the MAC operator 215 of the calculation tile 200 each receives two inputs, one input (activation) is received from the input activation bus 216; another input (parameter) is the wide memory 212. Received from. Therefore, activation supplies one of the inputs for each MAC operator 215, and each MAC operator 215 in the cell of the MAC array 214 gets their second multiplier input from the wide memory 212.

プロセス600のブロック606において、計算タイル200のMACアレイ214は、メモリからアクセスされるデータアレイ構造の要素に基づいて内積計算を含むテンソル計算を実行する。幅広メモリ212は、線形ユニットの幅(32ビット)に等しいビット単位の幅を有する。したがって、線形ユニット(LU)は、ベクトルメモリ(すなわち、幅広メモリ212)からデータを受け取るSIMDベクトル算術論理ユニット(ALU)ユニットである。いくつかの実現例では、MAC演算子215は、幅広メモリ212からアキュムレータ入力(部分和)も取得し得る。いくつかの実現例では、2つの異なるオペランド(パラメータおよび部分和)に関する読出および/または書込について、幅広メモリ212ポートに対して時分割がある。一般に、領域を最適化するために、幅広メモリ212は限られた数のポートを有し得る。その結果、幅広メモリ212からオペランド(例えば、パラメータ)を読み出し、同時に幅広メモリ212にオペランド(例えば、部分和)を書き込む必要がある場合、特定のオペランドに関連するパイプラインが機能停止し得る。 In block 606 of process 600, the MAC array 214 of the calculation tile 200 performs a tensor calculation including an inner product calculation based on the elements of the data array structure accessed from the memory. The wide memory 212 has a width in bits equal to the width of the linear unit (32 bits). Therefore, the linear unit (LU) is a SIMD vector arithmetic logic unit (ALU) unit that receives data from a vector memory (ie, wide memory 212). In some implementations, the MAC operator 215 may also obtain an accumulator input (partial sum) from the wide memory 212. In some implementations, there is time division for wide memory 212 ports for reads and / or writes for two different operands (parameters and partial sums). In general, the wide memory 212 may have a limited number of ports in order to optimize the area. As a result, if it is necessary to read an operand (eg, a parameter) from the wide memory 212 and write an operand (eg, a partial sum) to the wide memory 212 at the same time, the pipeline associated with the particular operand may stop functioning.

ブロック608で、計算タイル200の計算セル(MAC演算子215および合計レジスタ220を有する)が、MAC/計算セルによって実行される乗算演算に基づいて少なくとも1つの積和値を生成する。MACセル動作の結果は、(部分和算術演算中に)幅広メモリに書き戻される部分和、または出力バス218に送られる積和値のいずれかを含む。ブロック610で、計算タイル200のNLU222は、積和値に非線形活性化関数を適用し、次いで出力活性化を幅狭メモリ210に書き込む。いくつかの実現例では、出力バス218はシフトレジスタであり、MAC演算子215からの結果/積和値の並列ロードを累積することができるが、非線形関数の適用および同じタイルの幅狭メモリ210への書き込み動作のために、それらを一度に1つずつシフトアウトする。 At block 608, the calculation cell of calculation tile 200 (having MAC operator 215 and sum register 220) produces at least one product-sum value based on the multiplication operation performed by the MAC / calculation cell. The result of the MAC cell operation includes either the partial sum written back to the wide memory (during the partial sum arithmetic operation) or the product sum value sent to the output bus 218. At block 610, NLU222 of calculation tile 200 applies a non-linear activation function to the sum-of-product value and then writes the output activation to the narrow memory 210. In some implementations, the output bus 218 is a shift register that can accumulate parallel loads of results / sum of products from the MAC operator 215, but with the application of non-linear functions and the narrow memory 210 of the same tile. Shift them out one at a time for the write operation to.

本明細書において記載される主題および機能的動作の実施形態は、本明細書に開示される構造およびそれらの構造的等価物を含む、デジタル電子回路系において、有形で実施されるコンピュータソフトウェアもしくはファームウェアにおいて、コンピュータハードウェアにおいて、またはそれらの1つ以上の組合せにおいて実現され得る。本明細書に記載される主題の実施形態は、1つ以上のコンピュータプログラムとして、すなわち、データ処理装置による実行のために、または、データ処理装置の動作を制御するために有形の非一時的なプログラム担体上でエンコードされたコンピュータプログラム命令の1つ以上のモジュールとして実現され得る。代替的に、または加えて、プログラム命令は、データ処理装置による実行に対して好適な受信側装置への送信のために情報をエンコードするよう生成される、たとえばマシンにより生成された電気信号、光信号、または電磁気信号などの、人為的に生成された伝播される信号上でエンコードすることができる。コンピュータ記憶媒体は、コンピュータ可読記憶装置、コンピュータ可読記憶基板、ランダムもしくはシリアルアクセスメモリデバイス、または、それらの1つ以上の組合せであり得る。 Embodiments of the subject matter and functional operation described herein are computer software or firmware tangibly implemented in a digital electronic circuit system, including the structures disclosed herein and their structural equivalents. In computer hardware, or in one or more combinations thereof. Embodiments of the subject matter described herein are tangible, non-temporary, as one or more computer programs, i.e., for execution by a data processor or to control the operation of the data processor. It can be implemented as one or more modules of computer program instructions encoded on a program carrier. Alternatively, or in addition, program instructions are generated to encode information for transmission to a receiver device suitable for execution by a data processing device, such as a machine-generated electrical signal, optical. It can be encoded on an artificially generated propagated signal, such as a signal or an electromagnetic signal. The computer storage medium can be a computer readable storage device, a computer readable storage board, a random or serial access memory device, or a combination thereof.

本明細書に記載されるプロセスおよび論理フローは、入力データ上で動作し出力を生成することにより機能を実行するよう1つ以上のプログラマブルコンピュータが1つ以上のコンピュータプログラムを実行することによって実行され得る。プロセスおよび論理フローは、たとえばFPGA(フィールドプログラマブルゲートアレイ)、ASIC(特定用途向け集積回路)といった特殊目的論理回路、またはGPGPU(汎用グラフィック処理装置)によっても実行され得、装置もそれらにより実現され得る。 The processes and logical flows described herein are performed by one or more programmable computers running one or more computer programs to operate on input data and perform functions by producing outputs. obtain. Processes and logic flows can also be performed by special purpose logic circuits such as FPGAs (Field Programmable Gate Arrays), ASICs (Application Specific Integrated Circuits), or GPGPUs (General Purpose Graphic Processing Devices), and the devices can also be implemented by them. ..

コンピュータプログラムの実行に好適であるプロセッサは、例として、汎用マイクロプロセッサもしくは特殊目的マイクロプロセッサもしくはその両方または任意の種類の中央処理ユニットに基づき得る。一般に、中央処理ユニットは、リードオンリメモリもしくはランダムアクセスメモリまたはその両方から命令およびデータを受取る。コンピュータの必須の要素は、命令を実行するための中央処理ユニットと、命令およびデータを格納するための1つ以上のメモリデバイスとである。一般に、コンピュータはさらに、たとえば磁気ディスク、光磁気ディスクまたは光ディスクといった、データを格納するための1つ以上の大容量記憶装置を含むか、当該1つ以上の大容量記憶装置からデータを受取るかもしくは当該1つ以上の大容量記憶装置にデータを転送するよう動作可能に結合されるか、またはその両方を行う。しかしながら、コンピュータはそのような装置を有する必要はない。 A processor suitable for executing a computer program may be based, for example, on a general purpose microprocessor, a special purpose microprocessor, or both, or any kind of central processing unit. In general, the central processing unit receives instructions and data from read-only memory and / or random access memory. An essential element of a computer is a central processing unit for executing instructions and one or more memory devices for storing instructions and data. In general, a computer also includes, for example, one or more mass storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or receives data from the one or more mass storage devices. It is operably coupled to transfer data to the one or more mass storage devices, or both. However, the computer does not need to have such a device.

コンピュータプログラム命令およびデータを格納するのに好適であるコンピュータ可読媒体は、例として、たとえばEPROM、EEPROMおよびフラッシュメモリデバイスといった半導体メモリデバイスを含むすべての形態の不揮発性メモリ、媒体およびメモリデバイス;たとえば内部ハードディスクまたはリムーバブルディスクといった磁気ディスクを含む。プロセッサおよびメモリは、特殊目的論理回路によって補足され得るか、または特殊目的論理回路に組み込まれ得る。 Computer-readable media suitable for storing computer program instructions and data are all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices such as EPROM, EEPROM and flash memory devices; eg internal. Includes magnetic disks such as hard disks or removable disks. Processors and memory can be supplemented by special purpose logic circuits or incorporated into special purpose logic circuits.

本明細書は多くの特定の実現例の詳細を含んでいるが、これらは如何なる発明の範囲または請求され得るものの範囲に対する限定としても解釈されるべきではなく、特定の発明の特定の実施形態に特有の特徴であり得る記載として解釈されるべきである。別個の実施形態の文脈で本明細書において記載されるある特徴は、単一の実施形態において組合せでも実現され得る。反対に、単一の実施形態の文脈において記載されるさまざまな特徴は、複数の実施形態において別々に、または任意の好適な部分的組合わせでも実現され得る。さらに、特徴は、ある組合せにおいて作用すると上で記載され、最初はそのように請求されていさえする場合もあるが、請求される組合せからの1つ以上の特徴はいくつかの場合には当該組合せから削除され得、請求される組合せは、部分的組合わせまたは部分的組合わせの変形例に向けられ得る。 Although the present specification contains details of many particular embodiments, they should not be construed as a limitation to the scope of any invention or what can be claimed, and to a particular embodiment of a particular invention. It should be interpreted as a statement that can be a peculiar feature. Certain features described herein in the context of separate embodiments may also be realized in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment can be realized separately in multiple embodiments or in any suitable partial combination. Further, features are described above as acting in a combination and may even be initially claimed as such, but one or more features from the claimed combination may in some cases be the combination. Combinations that can be removed from and claimed from can be directed to partial combinations or variants of partial combinations.

同様に、動作が図においては特定の順に示されているが、そのような動作は、望ましい結果を達成するために、示された当該特定の順もしくは連続した順で実行される必要があると理解されるべきではなく、または、すべての示された動作が実行される必要があると理解されるべきではない。ある状況においては、マルチタスキングおよび並列処理が有利であり得る。さらに、上述の実施形態における様々なシステムモジュールおよびコンポーネントの分離は、すべての実施形態においてそのような分離を必要とすると理解されるべきではなく、記載されるプログラムコンポーネントおよびシステムは一般に単一のソフトウェア製品に統合され得るかまたは複数のソフトウェア製品にパッケージ化され得ることが理解されるべきである。 Similarly, the actions are shown in the figure in a particular order, but such actions need to be performed in that particular order or in a contiguous order to achieve the desired result. It should not be understood, or that all indicated actions need to be performed. In some situations, multitasking and parallel processing can be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and the program components and systems described are generally single software. It should be understood that it can be integrated into a product or packaged into multiple software products.

その他の実現例は、以下の例にまとめられる。
例1:テンソル計算を加速するための計算ユニットであって、第1のデータ幅を有し、少なくとも1つの入力活性化および少なくとも1つの出力活性化を格納するための第1のメモリバンクと、第1のデータ幅よりも大きい第2のデータ幅を有し、計算を実行する際に用いられる1つまたは複数のパラメータを格納するための第2のメモリバンクと、第2のメモリバンクからパラメータを受け取り計算を実行する少なくとも1つの積和(「MAC」)演算子を含む少なくとも1つのセルと、少なくとも第1のメモリバンクとデータ通信する第1のトラバーサルユニットとを備え、第1のトラバーサルユニットは、第1のメモリバンクに制御信号を与えて、MAC演算子によってアクセス可能なデータバスに入力活性化を与えるように構成され、計算ユニットは、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行し、1つまたは複数の計算は、MAC演算子によって実行され、部分的に、データバスから受け取られる入力活性化と第2のメモリバンクから受け取られるパラメータとの乗算演算を含む、計算ユニット。
Other implementation examples are summarized in the following examples.
Example 1: A computing unit for accelerating tensor computation, with a first memory bank having a first data width and storing at least one input activation and at least one output activation. A second memory bank that has a second data width that is larger than the first data width and stores one or more parameters used when performing calculations, and parameters from the second memory bank. A first traversal unit comprising at least one cell containing at least one product-sum (“MAC”) operator that receives and performs a calculation, and a first traversal unit that communicates data with at least the first memory bank. Is configured to give a control signal to the first memory bank to give input activation to the data bus accessible by the MAC operator, and the compute unit is one associated with at least one element of the data array. Or perform multiple calculations, one or more of which are performed by the MAC operator, partially multiplying the input activation received from the data bus with the parameters received from the second memory bank. Including, calculation unit.

例2:計算ユニットは、複数のループを含むループネストを実行することによって、計算のうちの1つまたは複数を実行し、ループネストの構造は、データアレイの1つまたは複数の次元をトラバースするよう第1のトラバーサルユニットによって用いられるそれぞれのループを含む、例1に記載の計算ユニット。 Example 2: A compute unit performs one or more of its computations by performing a loop nest containing multiple loops, and the loop nest structure traverses one or more dimensions of the data array. The computational unit according to Example 1, comprising each loop used by the first traversal unit.

例3:1つまたは複数の計算は、第1のトラバーサルユニットによって与えられるテンソル演算に部分的に基づいて実行され、テンソル演算は、データアレイの1つまたは複数の要素にアクセスするためのループネスト構造を含む、例2に記載の計算ユニット。 Example 3: One or more computations are performed based in part on the tensor operation given by the first traversal unit, which is a loop nesting to access one or more elements of the data array. The computational unit according to Example 2, comprising the structure.

例4:計算ユニットの外部にあるソースから受け取られる命令に基づいて、第1のメモリバンクの少なくとも1つのメモリ位置および第2のメモリバンクの少なくとも1つのメモリ位置にアクセスするように構成される第2のトラバーサルユニットをさらに備える、例1~例3の1つに記載の計算ユニット。 Example 4: A second memory location configured to access at least one memory location in the first memory bank and at least one memory location in the second memory bank based on instructions received from a source outside the compute unit. The calculation unit according to one of Examples 1 to 3, further comprising 2 traversal units.

例5:第1のトラバーサルユニットはテンソル演算トラバーサルユニットであり、第2のトラバーサルユニットはダイレクトメモリアクセストラバーサルユニットであり、データアレイは複数の要素を含むテンソルに対応する、例4に記載の計算ユニット。 Example 5: The computational unit according to Example 4, wherein the first traversal unit is a tensor arithmetic traversal unit, the second traversal unit is a direct memory access traversal unit, and the data array corresponds to a tensor containing a plurality of elements. ..

例6:計算ユニットは非線形ユニットを含み、計算の第1の部分は乗算演算に基づいて積和値を生成することを含み、計算の第2の部分は非線形ユニットによって非線形関数を1つまたは複数の積和値に適用することを含む、例1~例5の1つに記載の計算ユニット。 Example 6: The calculation unit contains a non-linear unit, the first part of the calculation involves generating a product-sum value based on the multiplication operation, and the second part of the calculation is one or more non-linear functions by the non-linear unit. The calculation unit according to one of Examples 1 to 5, which comprises applying to the product-sum value of.

例7:計算ユニットによって実行される1つまたは複数の計算は、積和値非線形ユニットにシフトするようシフトレジスタを用いることを含む、例6に記載の計算ユニット。 Example 7: The computational unit according to Example 6, wherein the computation performed by the computational unit comprises using a shift register to shift the sum-of-product value to a non- linear unit.

例8:計算ユニットの外側に延びるリングバスの一部をさらに備え、リングバスは、第1のメモリバンクと他の近接する計算ユニットのメモリバンクとの間および第2のメモリバンクと他の近接する計算ユニットのメモリバンクとの間にデータ経路を与える、例1~例8の1つに記載の計算ユニット。 Example 8: Further including a part of a ring bus extending outside the compute unit, the ring bus is between the first memory bank and the memory bank of another adjacent compute unit and between the second memory bank and the other proximity. The calculation unit according to one of Examples 1 to 8, which provides a data path between the calculation unit and the memory bank of the calculation unit.

例9:第2のメモリバンクは、部分和または1つもしくは複数のプーリング層入力のうちの少なくとも1つを格納するように構成されている、例1~例8の1つに記載の計算ユニット。 Example 9: The computational unit according to one of Examples 1-8, wherein the second memory bank is configured to store at least one of a partial sum or one or more pooling layer inputs. ..

例10:テンソル計算を加速するための、コンピュータにより実施される方法であって、第1のデータ幅を有する第1のメモリバンクが第1のトラバーサルユニットから制御信号を受け取ったことに応答して、第1のメモリバンクによって第1の入力活性化を送ることを備え、第1のメモリバンクは、計算ユニット内に配置され、第1の入力活性化は、計算ユニットの少なくとも1つのセルによってアクセス可能なデータバスによって与えられ、方法はさらに、少なくとも1つのセルによって、第1のデータ幅よりも大きい第2のデータ幅を有する第2のメモリバンクから1つまたは複数のパラメータを受け取ることを備え、少なくとも1つのセルは少なくとも1つの積和(「MAC」)演算子を含み、方法はさらに、MAC演算子によって、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行することを備え、1つまたは複数の計算は、部分的に、データバスからアクセスされる少なくとも第1の入力活性化と第2のメモリバンクから受け取られる少なくとも1つのパラメータとの乗算演算を含む。 Example 10: A computer-implemented method for accelerating tensor calculations in response to a first memory bank having a first data width receiving a control signal from a first traversal unit. The first memory bank is located within the compute unit and the first input activation is accessed by at least one cell of the compute unit. Given by a possible data bus, the method further comprises receiving one or more parameters from a second memory bank having a second data width larger than the first data width by at least one cell. , At least one cell contains at least one multiply-sum (“MAC”) operator, and the method further comprises performing one or more calculations related to at least one element of the data array by means of the MAC operator. One or more computations include, in part, a multiplication operation with at least one input activation accessed from the data bus and at least one parameter received from the second memory bank.

例11:1つまたは複数の計算は、計算ユニットが複数のループを含むループネストを実行することに部分的に基づいて実行され、ループネストの構造は、データアレイの1つまたは複数の次元をトラバースするよう第1のトラバーサルユニットによって用いられるそれぞれのループを含む、例10に記載のコンピュータにより実施される方法。 Example 11: One or more computations are performed based in part on the fact that the compute unit performs a loop nest containing multiple loops, and the structure of the loop nest is one or more dimensions of the data array. The method performed by the computer of Example 10, comprising each loop used by the first traversal unit to traverse.

例12:第1のトラバーサルユニットによって、データアレイの1つまたは複数の要素にアクセスするためのループネスト構造を含むテンソル演算を与えることをさらに備える、例11に記載のコンピュータにより実施される方法。 Example 12: A method performed by a computer according to Example 11, further comprising providing a tensor operation, including a loop nesting structure for accessing one or more elements of the data array, by a first traversal unit.

例13:第1のトラバーサルユニットはテンソル演算トラバーサルユニットであり、第2のトラバーサルユニットはダイレクトメモリアクセストラバーサルユニットであり、データアレイは複数の要素を含むテンソルに対応する、例10~例12の1つに記載のコンピュータにより実施される方法。 Example 13: The first traversal unit is a tensor arithmetic traversal unit, the second traversal unit is a direct memory access traversal unit, and the data array corresponds to a tensor containing a plurality of elements. The method performed by the computer described in 1.

例14:乗算演算に基づいて積和値を生成することによって1つまたは複数の計算の第1の部分を実行することをさらに備える、例10~例13の1つに記載のコンピュータにより実施される方法。 Example 14: Performed by the computer according to one of Example 10-13, further comprising performing the first part of one or more calculations by generating a product-sum value based on a multiplication operation. How to do it.

例15:積和値に非線形関数を適用して、1以上の出力活性化を得ることによって1つまたは複数の計算の第2の部分を実行することをさらに備える、例14に記載のコンピュータにより実施される方法。 Example 15: By the computer of Example 14, further comprising applying a nonlinear function to the sum of products value to perform a second part of one or more computations by obtaining one or more output activations. How it is carried out.

例16:1つまたは複数のプロセッサによって実行可能な命令を含む非一時的コンピュータ可読記憶媒体であって、命令は、そのように実行されると、1つまたは複数のプロセッサに動作を実行させ、動作は、第1のデータ幅を有する第1のメモリバンクが第1のトラバーサルユニットから制御信号を受け取ったことに応答して、第1のメモリバンクによって第1の入力活性化を送ることを含み、第1のメモリバンクは、計算ユニット内に配置され、第1の入力活性化は、計算ユニットの少なくとも1つのセルによってアクセス可能なデータバスによって与えられ、動作はさらに、少なくとも1つのセルによって、第1のデータ幅よりも大きい第2のデータ幅を有する第2のメモリバンクから1つまたは複数のパラメータを受け取ることを含み、少なくとも1つのセルは少なくとも1つの積和(「MAC」)演算子を含み、動作はさらに、MAC演算子によって、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行することを含み、1つまたは複数の計算は、部分的に、データバスからアクセスされる少なくとも第1の入力活性化と第2のメモリバンクから受け取られる少なくとも1つのパラメータとの乗算演算を含む。 Example 16: A non-temporary computer-readable storage medium containing instructions that can be executed by one or more processors, the instructions causing one or more processors to perform an operation when so executed. The operation involves sending a first input activation by the first memory bank in response to the first memory bank having the first data width receiving a control signal from the first traversal unit. , The first memory bank is located within the compute unit, the first input activation is given by the data bus accessible by at least one cell of the compute unit, and the operation is further by at least one cell. At least one cell contains at least one product-sum (“MAC”) operator, including receiving one or more parameters from a second memory bank that has a second data width that is greater than the first data width. The operation further comprises performing one or more operations related to at least one element of the data array by means of a MAC operator, the one or more operations being partially from the data bus. Includes a multiplication operation of at least the first input activation accessed and at least one parameter received from the second memory bank.

例17:1つまたは複数の計算は、計算ユニットが複数のループを含むループネストを実行することに部分的に基づいて実行され、ループネストの構造は、データアレイの1つまたは複数の次元をトラバースするよう第1のトラバーサルユニットによって用いられるそれぞれのループを含む、例16に記載の非一時的コンピュータ可読記憶媒体。 Example 17: One or more computations are performed based in part on the fact that the compute unit performs a loop nest containing multiple loops, and the structure of the loop nest is one or more dimensions of the data array. The non-temporary computer-readable storage medium of Example 16, comprising each loop used by a first traversal unit to traverse.

例18:第1のトラバーサルユニットによって、データアレイの1つまたは複数の要素にアクセスするためのループネスト構造を含むテンソル演算を与えることをさらに備える、例17に記載の非一時的コンピュータ可読記憶媒体。 Example 18: The non-temporary computer-readable storage medium of Example 17, further comprising providing a tensor operation, including a loop nesting structure for accessing one or more elements of the data array, by a first traversal unit. ..

例19:乗算演算に基づいて積和値を生成することによって1つまたは複数の計算の第1の部分を実行することをさらに備える、例16~例18の1つに記載の非一時的コンピュータ可読記憶媒体。 Example 19: The non-temporary computer according to one of Examples 16-18, further comprising performing a first part of one or more calculations by generating a product-sum value based on a multiplication operation. Readable storage medium.

例20:積和値に非線形関数を適用して、1以上の出力活性化を得ることによって、1つまたは複数の計算の第2の部分を実行することをさらに備える、例19に記載の非一時的コンピュータ可読記憶媒体。 Example 20: The non-discussion of Example 19, further comprising performing a second part of one or more computations by applying a nonlinear function to the sum of products values to obtain one or more output activations. Temporary computer-readable storage medium.

主題の特定の実施形態が記載された。他の実施形態は以下の請求の範囲内にある。たとえば、請求項において記載されるアクションは、異なる順で実行され得、それでも望ましい結果を達成し得る。一例として、添付の図において示されるプロセスは、望ましい結果を達成するために、示された特定の順または連続する順であることを必ずしも必要としない。ある実現例においては、マルチタスキングおよび並列処理が有利であり得る。 Specific embodiments of the subject have been described. Other embodiments are within the scope of the following claims. For example, the actions described in the claims may be performed in different order and still achieve the desired result. As an example, the process shown in the attached figure does not necessarily have to be in the specific order or consecutive order shown to achieve the desired result. In some implementations, multitasking and parallel processing may be advantageous.

Claims (15)

ニューラルネットワークのテンソル計算を加速するための計算ユニット(200)であって、
第1のデータ幅を有し、少なくとも1つの入力活性化および少なくとも1つの出力活性化を格納するための第1のメモリバンク(210)と、
前記第1のデータ幅よりも大きい第2のデータ幅を有し、計算を実行する際に用いられる1つまたは複数のパラメータを格納するための第2のメモリバンク(212)と、
前記計算ユニットの外部にあるソースから受け取られる命令に基づいて、前記第1のメモリバンクの少なくとも1つのメモリ位置にアクセスして少なくとも1つの入力活性化を得、
前記第2のメモリバンクに前記1つまたは複数のパラメータを書き込むための制御信号を与え、
前記受け取られた命令に基づいて、前記第2のメモリバンクの少なくとも1つのメモリ位置にアクセスして前記1つまたは複数のパラメータを得るように構成されるダイレクトメモリアクセストラバーサルユニットと、
前記第2のメモリバンクからパラメータを受け取り計算を実行する少なくとも1つの積和(MAC)演算子(215)を含む少なくとも1つのセルと、
少なくとも前記第1のメモリバンクとデータ通信するテンソルトラバーサルユニット(226)とを備え、前記テンソルトラバーサルユニットは、前記第1のメモリバンクに制御信号を与えて、前記MAC演算子によってアクセス可能なデータバス(216)に入力活性化を与えるように構成され、
前記計算ユニットは、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行し、前記1つまたは複数の計算は、前記MAC演算子によって実行され、部分的に、前記データバスから受け取られる前記入力活性化と前記第2のメモリバンクから受け取られるパラメータとの乗算演算を含み、
前記第2のメモリバンクは、部分和または1つもしくは複数のプーリング層入力のうちの少なくとも1つを格納するように構成されている、計算ユニット。
A calculation unit (200) for accelerating tensor calculation of neural networks.
A first memory bank (210) having a first data width and for storing at least one input activation and at least one output activation,
A second memory bank (212) having a second data width larger than the first data width and for storing one or more parameters used when performing a calculation.
Based on instructions received from sources outside the compute unit, access to at least one memory location in the first memory bank to obtain at least one input activation.
A control signal for writing the one or more parameters is given to the second memory bank.
A direct memory access traversal unit configured to access at least one memory location in the second memory bank to obtain the one or more parameters based on the instruction received.
With at least one cell containing at least one product-sum (MAC) operator (215) that receives parameters from the second memory bank and performs calculations.
A tensor traversal unit (226) for data communication with at least the first memory bank is provided, and the tensor traversal unit gives a control signal to the first memory bank and is accessible by the MAC operator. (216) is configured to give input activation,
The compute unit performs one or more computations related to at least one element of the data array, the one or more computations being performed by the MAC operator and partially from the data bus. Includes a multiplication operation between the input activation received and the parameters received from the second memory bank.
The second memory bank is a computational unit configured to store at least one of a partial sum or one or more pooling layer inputs .
ニューラルネットワークのテンソル計算を加速するための計算ユニット(200)であって、
第1のデータ幅を有し、少なくとも1つの入力活性化および少なくとも1つの出力活性化を格納するための第1のメモリバンク(210)と、
前記第1のデータ幅よりも大きい第2のデータ幅を有し、計算を実行する際に用いられる1つまたは複数のパラメータを格納するための第2のメモリバンク(212)と、
前記計算ユニットの外部にあるソースから受け取られる命令に基づいて、前記第1のメモリバンクの少なくとも1つのメモリ位置にアクセスして少なくとも1つの入力活性化を得、
前記第2のメモリバンクに前記1つまたは複数のパラメータを書き込むための制御信号を与え、
前記受け取られた命令に基づいて、前記第2のメモリバンクの少なくとも1つのメモリ位置にアクセスして前記1つまたは複数のパラメータを得るように構成されるダイレクトメモリアクセストラバーサルユニットと、
前記第2のメモリバンクからパラメータを受け取り計算を実行する少なくとも1つの積和(MAC)演算子(215)を含む少なくとも1つのセルと、
少なくとも前記第1のメモリバンクとデータ通信するテンソルトラバーサルユニット(226)とを備え、前記テンソルトラバーサルユニットは、前記第1のメモリバンクに制御信号を与えて、前記MAC演算子によってアクセス可能なデータバス(216)に入力活性化を与えるように構成され、
前記計算ユニットは、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行し、前記1つまたは複数の計算は、前記MAC演算子によって実行され、部分的に、前記データバスから受け取られる前記入力活性化と前記第2のメモリバンクから受け取られるパラメータとの乗算演算を含み、
前記計算ユニットの外側に延びるリングバスは、前記第2のメモリバンクと他の近接する計算ユニットの第2のメモリバンクとの間にデータ経路を与え、
前記リングバスを通じて、ペイロードデータとビットマップヘッダとが転送され、前記ペイロードデータは、前記パラメータを含み、前記ビットマップヘッダは、前記ペイロードデータを使用する必要がある計算タイルを示し、
前記計算タイルが前記ペイロードデータと前記ビットマップヘッダとを受信したときに、前記計算タイルは、前記ビットマップヘッダにおける前記計算タイルに固有のビットセットデータをクリアし、前記ペイロードデータと前記ビットマップヘッダとを別の計算タイルに送信する、計算ユニット。
A calculation unit (200) for accelerating tensor calculation of neural networks.
A first memory bank (210) having a first data width and for storing at least one input activation and at least one output activation,
A second memory bank (212) having a second data width larger than the first data width and for storing one or more parameters used when performing a calculation.
Based on instructions received from sources outside the compute unit, access to at least one memory location in the first memory bank to obtain at least one input activation.
A control signal for writing the one or more parameters is given to the second memory bank.
A direct memory access traversal unit configured to access at least one memory location in the second memory bank to obtain the one or more parameters based on the instruction received.
With at least one cell containing at least one product-sum (MAC) operator (215) that receives parameters from the second memory bank and performs calculations.
A tensor traversal unit (226) for data communication with at least the first memory bank is provided, and the tensor traversal unit gives a control signal to the first memory bank and is accessible by the MAC operator. (216) is configured to give input activation,
The compute unit performs one or more computations related to at least one element of the data array, the one or more computations being performed by the MAC operator and partially from the data bus. Includes a multiplication operation between the input activation received and the parameters received from the second memory bank.
A ring bus extending outside the compute unit provides a data path between the second memory bank and the second memory bank of another adjacent compute unit.
The payload data and the bitmap header are transferred through the ring bus, the payload data includes the parameters, and the bitmap header indicates a calculation tile in which the payload data should be used.
When the calculation tile receives the payload data and the bitmap header, the calculation tile clears the bit set data specific to the calculation tile in the bitmap header, and the payload data and the bitmap header. A calculation unit that sends and to another calculation tile .
前記計算ユニットは、複数のループを含むループネストを実行することによって、前記計算のうちの1つまたは複数を実行し、前記ループネストの構造は、前記データアレイの1つまたは複数の次元をトラバースするよう前記テンソルトラバーサルユニットによって用いられるそれぞれのループを含む、請求項1または2に記載の計算ユニット。 The compute unit performs one or more of the calculations by performing a loop nest containing the plurality of loops, and the structure of the loop nest traverses one or more dimensions of the data array. The calculation unit according to claim 1 or 2 , comprising each loop used by said tensor traversal unit. 前記1つまたは複数の計算は、前記テンソルトラバーサルユニットによって与えられるテンソル演算に部分的に基づいて実行され、前記テンソル演算は、前記データアレイの1つまたは複数の要素にアクセスするためのループネスト構造を含む、請求項に記載の計算ユニット。 The one or more computations are performed based in part on the tensor operation given by the tensor traversal unit, which is a loop nesting structure for accessing one or more elements of the data array. 3. The calculation unit according to claim 3 . 前記計算ユニットは非線形ユニットを含み、前記計算の第1の部分は前記乗算演算に基づいて積和値を生成することを含み、前記計算の第2の部分は前記非線形ユニットによって非線形関数を前記積和値に適用することによって、少なくとも1つの出力活性化を得ることを含み、前記第1のメモリバンクは、前記少なくとも1つの出力活性化を格納する、請求項1~のいずれか1項に記載の計算ユニット。 The calculation unit includes a non-linear unit, a first part of the calculation comprises generating a product-sum value based on the multiplication operation, and a second part of the calculation is the product of non-linear functions by the non-linear unit. Any one of claims 1 to 4 , comprising obtaining at least one output activation by applying to the sum value , wherein the first memory bank stores the at least one output activation. The calculation unit described in. 前記計算ユニットによって実行される前記1つまたは複数の計算は、前記積和値を前記非線形ユニットにシフトするようシフトレジスタを用いることを含む、請求項に記載の計算ユニット。 The calculation unit according to claim 5 , wherein the calculation performed by the calculation unit comprises using a shift register to shift the product-sum value to the non- linear unit. 前記計算ユニットの外側に延びるリングバスの一部をさらに備え、前記リングバスは、前記第1のメモリバンクと他の近接する計算ユニットのメモリバンクとの間および前記第2のメモリバンクと他の近接する計算ユニットのメモリバンクとの間にデータ経路を与える、請求項1および3~6のいずれか1項に記載の計算ユニット。 Further comprising a portion of a ring bus extending outside the compute unit, the ring bus may be between the first memory bank and a memory bank of another adjacent compute unit and between the second memory bank and the other. The calculation unit according to any one of claims 1 and 3 to 6, which provides a data path to and from a memory bank of adjacent calculation units. 前記第2のメモリバンクは、部分和または1つもしくは複数のプーリング層入力のうちの少なくとも1つを格納するように構成されている、請求項2~7のいずれか1項に記載の計算ユニット。 The calculation unit according to any one of claims 2 to 7 , wherein the second memory bank is configured to store at least one of a partial sum or one or more pooling layer inputs. .. ニューラルネットワークのテンソル計算を加速するための、コンピュータにより実施される方法であって、
算ユニットの外部にあるソースから受け取られる命令に基づいて、ダイレクトメモリアクセストラバーサルユニットによって、第1のメモリバンクの少なくとも1つのメモリ位置にアクセスして少なくとも1つの入力活性化を得ることと、
第2のメモリバンクにパラメータを書き込むための制御信号を与えることと、
前記受け取られた命令に基づいて、第2のメモリバンクの少なくとも1つのメモリ位置にアクセスして1つまたは複数のパラメータを得ることと、
第1のデータ幅を有する前記第1のメモリバンクがテンソルトラバーサルユニットから制御信号を受け取ったことに応答して、前記第1のメモリバンクによって第1の入力活性化を送ることを備え、前記第1のメモリバンクは、計算ユニット内に配置され、前記第1の入力活性化は、前記計算ユニットの少なくとも1つのセルによってアクセス可能なデータバスによって与えられ、前記方法はさらに、
前記少なくとも1つのセルによって、前記第1のデータ幅よりも大きい第2のデータ幅を有する第2のメモリバンクから1つまたは複数のパラメータを受け取ることを備え、前記少なくとも1つのセルは少なくとも1つの積和(MAC)演算子を含み、前記方法はさらに、
前記MAC演算子によって、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行することを備え、前記1つまたは複数の計算は、部分的に、前記データバスからアクセスされる少なくとも前記第1の入力活性化と前記第2のメモリバンクから受け取られる少なくとも1つのパラメータとの乗算演算を含み、
前記第2のメモリバンクは、部分和または1つもしくは複数のプーリング層入力のうちの少なくとも1つを格納するように構成されている、ニューラルネットワークのテンソル計算を加速するための、コンピュータにより実施される方法。
A computer-implemented method for accelerating neural network tensor calculations,
The direct memory access traversal unit accesses at least one memory location in the first memory bank to obtain at least one input activation based on an instruction received from a source outside the compute unit.
To give a control signal to write parameters to the second memory bank,
Based on the instruction received, accessing at least one memory location in the second memory bank to obtain one or more parameters.
The first memory bank having the first data width comprises sending a first input activation by the first memory bank in response to receiving a control signal from the tensor traversal unit. One memory bank is located within the compute unit, the first input activation is provided by a data bus accessible by at least one cell of the compute unit, and the method further comprises.
The at least one cell comprises receiving one or more parameters from a second memory bank having a second data width greater than the first data width, wherein the at least one cell is at least one. The product-sum (MAC) operator is included, and the above method further includes
The MAC operator comprises performing one or more calculations related to at least one element of the data array, the one or more calculations being at least partially accessed from the data bus. Includes a multiplication operation between the first input activation and at least one parameter received from the second memory bank.
The second memory bank is performed by a computer to accelerate the tensor calculation of the neural network, which is configured to store at least one of the partial sum or one or more pooling layer inputs. How to do it.
ニューラルネットワークのテンソル計算を加速するための、コンピュータにより実施される方法であって、A computer-implemented method for accelerating neural network tensor calculations,
計算ユニットの外部にあるソースから受け取られる命令に基づいて、ダイレクトメモリアクセストラバーサルユニットによって、第1のメモリバンクの少なくとも1つのメモリ位置にアクセスして少なくとも1つの入力活性化を得ることと、The direct memory access traversal unit accesses at least one memory location in the first memory bank to obtain at least one input activation based on an instruction received from a source outside the compute unit.
第2のメモリバンクにパラメータを書き込むための制御信号を与えることと、To give a control signal to write parameters to the second memory bank,
前記受け取られた命令に基づいて、第2のメモリバンクの少なくとも1つのメモリ位置にアクセスして1つまたは複数のパラメータを得ることと、Based on the instruction received, accessing at least one memory location in the second memory bank to obtain one or more parameters.
第1のデータ幅を有する前記第1のメモリバンクがテンソルトラバーサルユニットから制御信号を受け取ったことに応答して、前記第1のメモリバンクによって第1の入力活性化を送ることを備え、前記第1のメモリバンクは、計算ユニット内に配置され、前記第1の入力活性化は、前記計算ユニットの少なくとも1つのセルによってアクセス可能なデータバスによって与えられ、前記方法はさらに、The first memory bank having the first data width comprises sending a first input activation by the first memory bank in response to receiving a control signal from the tensor traversal unit. One memory bank is located within the compute unit, the first input activation is provided by a data bus accessible by at least one cell of the compute unit, and the method further comprises.
前記少なくとも1つのセルによって、前記第1のデータ幅よりも大きい第2のデータ幅を有する第2のメモリバンクから1つまたは複数のパラメータを受け取ることを備え、前記少なくとも1つのセルは少なくとも1つの積和(MAC)演算子を含み、前記方法はさらに、The at least one cell comprises receiving one or more parameters from a second memory bank having a second data width greater than the first data width, wherein the at least one cell is at least one. The product-sum (MAC) operator is included, and the above method further includes
前記MAC演算子によって、データアレイの少なくとも1つの要素に関連する1つまたは複数の計算を実行することを備え、前記1つまたは複数の計算は、部分的に、前記データバスからアクセスされる少なくとも前記第1の入力活性化と前記第2のメモリバンクから受け取られる少なくとも1つのパラメータとの乗算演算を含み、The MAC operator comprises performing one or more calculations related to at least one element of the data array, the one or more calculations being at least partially accessed from the data bus. Includes a multiplication operation between the first input activation and at least one parameter received from the second memory bank.
前記計算ユニットの外側に延びるリングバスは、前記第2のメモリバンクと他の近接する計算ユニットの第2のメモリバンクとの間にデータ経路を与え、A ring bus extending outside the compute unit provides a data path between the second memory bank and the second memory bank of another adjacent compute unit.
前記リングバスを通じて、ペイロードデータとビットマップヘッダとが転送され、前記ペイロードデータは、前記パラメータを含み、前記ビットマップヘッダは、前記ペイロードデータを使用する必要がある計算タイルを示し、The payload data and the bitmap header are transferred through the ring bus, the payload data includes the parameters, and the bitmap header indicates a calculation tile in which the payload data should be used.
前記計算タイルが前記ペイロードデータと前記ビットマップヘッダとを受信したときに、前記計算タイルは、前記ビットマップヘッダにおける前記計算タイルに固有のビットセットデータをクリアし、前記ペイロードデータと前記ビットマップヘッダとを別の計算タイルに送信する、ニューラルネットワークのテンソル計算を加速するための、コンピュータにより実施される方法。When the calculation tile receives the payload data and the bitmap header, the calculation tile clears the bit set data specific to the calculation tile in the bitmap header, and the payload data and the bitmap header. A computer-implemented method for accelerating tensor calculations in a neural network that sends and to another calculation tile.
前記1つまたは複数の計算は、前記計算ユニットが複数のループを含むループネストを実行することに部分的に基づいて実行され、前記ループネストの構造は、前記データアレイの1つまたは複数の次元をトラバースするよう前記テンソルトラバーサルユニットによって用いられるそれぞれのループを含む、請求項9または10に記載のコンピュータにより実施される方法。 The one or more computations are performed based in part on the calculation unit performing a loop nest containing the plurality of loops, and the structure of the loop nest is one or more dimensions of the data array. The method performed by the computer according to claim 9 or 10 , comprising each loop used by the tensor traversal unit to traverse. 前記テンソルトラバーサルユニットによって、前記データアレイの1つまたは複数の要素にアクセスするためのループネスト構造を含むテンソル演算を与えることをさらに備える、請求項11に記載のコンピュータにより実施される方法。 11. The method performed by a computer according to claim 11 , further comprising providing the tensor traversal unit with a tensor operation comprising a loop nesting structure for accessing one or more elements of the data array. 前記乗算演算に基づいて積和値を生成することによって前記1つまたは複数の計算の第1の部分を実行することをさらに備える、請求項9~12のいずれか1項に記載のコンピュータにより実施される方法。 Performed by the computer of any one of claims 9-12 , further comprising performing the first part of the one or more calculations by generating a product-sum value based on the multiplication operation. How to be done. 前記積和値に非線形関数を適用して、少なくとも1つの出力活性化を得ることによって前記1つまたは複数の計算の第2の部分を実行することをさらに備える、請求項13に記載のコンピュータにより実施される方法。 13. The computer according to claim 13 , further comprising applying a non-linear function to the sum of products value to perform a second portion of the one or more calculations by obtaining at least one output activation. How it is carried out. コンピュータによって実行されるプログラムであって、前記プログラムは、前記コンピュータに請求項9~14のいずれか1項に記載の方法を実行させる、プログラム。 A program executed by a computer, wherein the program causes the computer to execute the method according to any one of claims 9 to 14 .
JP2019522728A 2016-10-27 2017-08-15 Neural network calculation tile Active JP6995851B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021203544A JP7451483B2 (en) 2016-10-27 2021-12-15 neural network calculation tile

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US15/335,769 US10175980B2 (en) 2016-10-27 2016-10-27 Neural network compute tile
US15/335,769 2016-10-27
PCT/US2017/046963 WO2018080617A1 (en) 2016-10-27 2017-08-15 Neural network compute tile

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2021203544A Division JP7451483B2 (en) 2016-10-27 2021-12-15 neural network calculation tile

Publications (2)

Publication Number Publication Date
JP2019537793A JP2019537793A (en) 2019-12-26
JP6995851B2 true JP6995851B2 (en) 2022-01-17

Family

ID=59296600

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2019522728A Active JP6995851B2 (en) 2016-10-27 2017-08-15 Neural network calculation tile
JP2021203544A Active JP7451483B2 (en) 2016-10-27 2021-12-15 neural network calculation tile

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2021203544A Active JP7451483B2 (en) 2016-10-27 2021-12-15 neural network calculation tile

Country Status (10)

Country Link
US (4) US10175980B2 (en)
EP (1) EP3533001A1 (en)
JP (2) JP6995851B2 (en)
KR (2) KR102317668B1 (en)
CN (2) CN108009106A (en)
DE (2) DE102017121825A1 (en)
GB (1) GB2555936B (en)
HK (1) HK1254698A1 (en)
SG (1) SG11201903684RA (en)
WO (1) WO2018080617A1 (en)

Families Citing this family (107)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9875104B2 (en) 2016-02-03 2018-01-23 Google Llc Accessing data in multi-dimensional tensors
CA2990712C (en) * 2016-06-14 2018-09-04 The Governing Council Of The University Of Toronto Accelerator for deep neural networks
US10175980B2 (en) * 2016-10-27 2019-01-08 Google Llc Neural network compute tile
US10360163B2 (en) 2016-10-27 2019-07-23 Google Llc Exploiting input data sparsity in neural network compute units
US9959498B1 (en) * 2016-10-27 2018-05-01 Google Llc Neural network instruction set architecture
US10891534B2 (en) 2017-01-11 2021-01-12 International Business Machines Corporation Neural network reinforcement learning
US11663450B2 (en) * 2017-02-28 2023-05-30 Microsoft Technology Licensing, Llc Neural network processing with chained instructions
US10365987B2 (en) 2017-03-29 2019-07-30 Google Llc Synchronous hardware event collection
US9875167B1 (en) 2017-03-29 2018-01-23 Google Inc. Distributed hardware tracing
US10817293B2 (en) * 2017-04-28 2020-10-27 Tenstorrent Inc. Processing core with metadata actuated conditional graph execution
CN108875956B (en) * 2017-05-11 2019-09-10 广州异构智能科技有限公司 Primary tensor processor
US11169732B2 (en) * 2017-05-18 2021-11-09 Kabushiki Kaisha Toshiba Computing device
US10248908B2 (en) 2017-06-19 2019-04-02 Google Llc Alternative loop limits for accessing data in multi-dimensional tensors
CN107608715B (en) * 2017-07-20 2020-07-03 上海寒武纪信息科技有限公司 Apparatus and method for performing artificial neural network forward operations
US10790828B1 (en) 2017-07-21 2020-09-29 X Development Llc Application specific integrated circuit accelerators
US10879904B1 (en) 2017-07-21 2020-12-29 X Development Llc Application specific integrated circuit accelerators
GB2568776B (en) 2017-08-11 2020-10-28 Google Llc Neural network accelerator with parameters resident on chip
US11360934B1 (en) 2017-09-15 2022-06-14 Groq, Inc. Tensor streaming processor architecture
US11243880B1 (en) * 2017-09-15 2022-02-08 Groq, Inc. Processor architecture
US11114138B2 (en) 2017-09-15 2021-09-07 Groq, Inc. Data structures with multiple read ports
US11868804B1 (en) 2019-11-18 2024-01-09 Groq, Inc. Processor instruction dispatch configuration
US11170307B1 (en) 2017-09-21 2021-11-09 Groq, Inc. Predictive model compiler for generating a statically scheduled binary with known resource constraints
CN111149090B (en) * 2017-09-21 2023-12-01 华为技术有限公司 Multithreaded systolic array
US11694066B2 (en) * 2017-10-17 2023-07-04 Xilinx, Inc. Machine learning runtime library for neural network acceleration
US11222256B2 (en) * 2017-10-17 2022-01-11 Xilinx, Inc. Neural network processing system having multiple processors and a neural network accelerator
US11620490B2 (en) * 2017-10-17 2023-04-04 Xilinx, Inc. Multi-layer neural network processing by a neural network accelerator using host communicated merged weights and a package of per-layer instructions
GB2568086B (en) 2017-11-03 2020-05-27 Imagination Tech Ltd Hardware implementation of convolution layer of deep neutral network
CN117762234A (en) * 2017-11-21 2024-03-26 谷歌有限责任公司 Low power environment computing system with machine learning function
US10936942B2 (en) * 2017-11-21 2021-03-02 Google Llc Apparatus and mechanism for processing neural network tasks using a single chip package with multiple identical dies
US20190179635A1 (en) * 2017-12-11 2019-06-13 Futurewei Technologies, Inc. Method and apparatus for tensor and convolution operations
US10747631B2 (en) * 2018-01-19 2020-08-18 DinoplusAI Holdings Limited Mission-critical AI processor with record and replay support
KR20200118815A (en) * 2018-02-16 2020-10-16 더 가버닝 카운슬 오브 더 유니버시티 오브 토론토 Neural network accelerator
US10908879B2 (en) 2018-03-02 2021-02-02 Neuchips Corporation Fast vector multiplication and accumulation circuit
US11614941B2 (en) 2018-03-30 2023-03-28 Qualcomm Incorporated System and method for decoupling operations to accelerate processing of loop structures
US10657442B2 (en) * 2018-04-19 2020-05-19 International Business Machines Corporation Deep learning accelerator architecture with chunking GEMM
US11568227B1 (en) 2018-04-20 2023-01-31 Perceive Corporation Neural network inference circuit read controller with multiple operational modes
US20190325295A1 (en) * 2018-04-20 2019-10-24 International Business Machines Corporation Time, space, and energy efficient neural inference via parallelism and on-chip memory
US11501138B1 (en) * 2018-04-20 2022-11-15 Perceive Corporation Control circuits for neural network inference circuit
US11783167B1 (en) 2018-04-20 2023-10-10 Perceive Corporation Data transfer for non-dot product computations on neural network inference circuit
US10740434B1 (en) 2018-04-20 2020-08-11 Perceive Corporation Reduced dot product computation circuit
US11481612B1 (en) 2018-04-20 2022-10-25 Perceive Corporation Storage of input values across multiple cores of neural network inference circuit
US11556762B2 (en) 2018-04-21 2023-01-17 Microsoft Technology Licensing, Llc Neural network processor based on application specific synthesis specialization parameters
US20190332925A1 (en) * 2018-04-30 2019-10-31 International Business Machines Corporation Neural hardware accelerator for parallel and distributed tensor computations
US20190392287A1 (en) * 2018-06-22 2019-12-26 Samsung Electronics Co., Ltd. Neural processor
US11663461B2 (en) 2018-07-05 2023-05-30 International Business Machines Corporation Instruction distribution in an array of neural network cores
US20200019836A1 (en) * 2018-07-12 2020-01-16 International Business Machines Corporation Hierarchical parallelism in a network of distributed neural network cores
CN110796244B (en) * 2018-08-01 2022-11-08 上海天数智芯半导体有限公司 Core computing unit processor for artificial intelligence device and accelerated processing method
CN109117949A (en) * 2018-08-01 2019-01-01 南京天数智芯科技有限公司 Flexible data stream handle and processing method for artificial intelligence equipment
US10817042B2 (en) * 2018-09-27 2020-10-27 Intel Corporation Power savings for neural network architecture with zero activations during inference
US10834024B2 (en) * 2018-09-28 2020-11-10 International Business Machines Corporation Selective multicast delivery on a bus-based interconnect
WO2020081431A1 (en) * 2018-10-15 2020-04-23 The Board Of Trustees Of The University Of Illinois In-memory near-data approximate acceleration
KR102637733B1 (en) 2018-10-31 2024-02-19 삼성전자주식회사 Neural network processor and convolution operation method thereof
US11204976B2 (en) 2018-11-19 2021-12-21 Groq, Inc. Expanded kernel generation
US11361050B2 (en) 2018-11-20 2022-06-14 Hewlett Packard Enterprise Development Lp Assigning dependent matrix-vector multiplication operations to consecutive crossbars of a dot product engine
US11263011B2 (en) 2018-11-28 2022-03-01 International Business Machines Corporation Compound instruction set architecture for a neural inference chip
JP7189000B2 (en) * 2018-12-12 2022-12-13 日立Astemo株式会社 Information processing equipment, in-vehicle control equipment, vehicle control system
US20200202198A1 (en) * 2018-12-21 2020-06-25 Waymo Llc Neural network processor
US11144282B2 (en) 2019-01-16 2021-10-12 Mediatek Inc. Mathematical accelerator for artificial intelligence applications
US11347297B1 (en) 2019-01-23 2022-05-31 Perceive Corporation Neural network inference circuit employing dynamic memory sleep
WO2020163171A1 (en) * 2019-02-07 2020-08-13 quadric.io, Inc. Systems and methods for implementing a random access augmented machine perception and dense algorithm integrated circuit
US11023379B2 (en) 2019-02-13 2021-06-01 Google Llc Low-power cached ambient computing
US11748599B2 (en) * 2019-02-21 2023-09-05 Texas Instruments Incorporated Super-tiling in neural network processing to enable analytics at lower memory speed
CN111782133A (en) * 2019-04-04 2020-10-16 安徽寒武纪信息科技有限公司 Data processing method and device and related product
US11176493B2 (en) * 2019-04-29 2021-11-16 Google Llc Virtualizing external memory as local to a machine learning accelerator
US11941533B1 (en) 2019-05-21 2024-03-26 Perceive Corporation Compiler for performing zero-channel removal
JP7278150B2 (en) 2019-05-23 2023-05-19 キヤノン株式会社 Image processing device, imaging device, image processing method
US20210026686A1 (en) * 2019-07-22 2021-01-28 Advanced Micro Devices, Inc. Chiplet-integrated machine learning accelerators
GB2586278B (en) * 2019-08-16 2022-11-23 Siemens Ind Software Inc Addressing mechanism for a system on chip
GB2586277B (en) 2019-08-16 2022-11-23 Siemens Ind Software Inc Broadcasting event messages in a system on chip
GB2586279B (en) 2019-08-16 2022-11-23 Siemens Ind Software Inc Routing messages in a integrated circuit chip device
EP4004730A1 (en) * 2019-10-07 2022-06-01 Google LLC Redistributing tensor elements between machine learning computing units
US11327690B2 (en) 2019-11-13 2022-05-10 Google Llc Enhanced input of machine-learning accelerator activations
CN112990421B (en) * 2019-12-02 2023-09-05 杭州海康威视数字技术股份有限公司 Method, device and storage medium for optimizing operation process of deep learning network
KR20210071471A (en) 2019-12-06 2021-06-16 삼성전자주식회사 Apparatus and method for performing matrix multiplication operation of neural network
JP2023511812A (en) 2019-12-17 2023-03-23 グーグル エルエルシー Low power visual sensing
KR20210077352A (en) * 2019-12-17 2021-06-25 에스케이하이닉스 주식회사 Data Processing System and accelerating DEVICE therefor
US20220335945A1 (en) 2019-12-18 2022-10-20 Google Llc Machine learning based privacy processing
CN114430838A (en) * 2019-12-19 2022-05-03 谷歌有限责任公司 Processing continuous inputs using neural network accelerators
KR20210085461A (en) 2019-12-30 2021-07-08 삼성전자주식회사 Processing apparatus and method for processing floating point operation thereof
US11537323B2 (en) * 2020-01-07 2022-12-27 SK Hynix Inc. Processing-in-memory (PIM) device
DE102020201182A1 (en) * 2020-01-31 2021-08-05 Robert Bosch Gesellschaft mit beschränkter Haftung Hardware-accelerated calculation of convolutions
US11630991B2 (en) 2020-02-04 2023-04-18 Apple Inc. Broadcasting mode of planar engine for neural processor
US11226816B2 (en) 2020-02-12 2022-01-18 Samsung Electronics Co., Ltd. Systems and methods for data placement for in-memory-compute
US11281554B2 (en) 2020-03-17 2022-03-22 Samsung Electronics Co., Ltd. System and method for in-memory computation
CN113537476A (en) * 2020-04-16 2021-10-22 中科寒武纪科技股份有限公司 Arithmetic device and related product
US11928176B2 (en) * 2020-07-30 2024-03-12 Arm Limited Time domain unrolling sparse matrix multiplication system and method
US11954580B2 (en) 2020-09-16 2024-04-09 Meta Platforms, Inc. Spatial tiling of compute arrays with shared control
US20220114440A1 (en) * 2020-10-14 2022-04-14 Google Llc Queue Allocation in Machine Learning Accelerators
US11704562B1 (en) 2020-11-04 2023-07-18 Meta Platforms, Inc. Architecture for virtual instructions
US11709783B1 (en) 2020-11-11 2023-07-25 Meta Platforms, Inc. Tensor data distribution using grid direct-memory access (DMA) controller
US11972349B1 (en) 2020-11-12 2024-04-30 Meta Platforms, Inc. Flexible compute array utilization in a tensor processor
US20220188492A1 (en) * 2020-12-10 2022-06-16 Memryx Incorporated Chiplet based artificial intelligence accelerators and configuration methods
US11922306B2 (en) 2020-12-28 2024-03-05 Meta Platforms, Inc. Tensor controller architecture
US11790611B2 (en) 2020-12-30 2023-10-17 Meta Platforms, Inc. Visual editor for designing augmented-reality effects that utilize voice recognition
CN112596684B (en) 2021-03-08 2021-06-22 成都启英泰伦科技有限公司 Data storage method for voice deep neural network operation
US20220405557A1 (en) * 2021-06-10 2022-12-22 Samsung Electronics Co., Ltd. Sram-sharing for reconfigurable neural processing units
US11734013B2 (en) 2021-06-17 2023-08-22 International Business Machines Corporation Exception summary for invalid values detected during instruction execution
US11675592B2 (en) 2021-06-17 2023-06-13 International Business Machines Corporation Instruction to query for model-dependent information
US11269632B1 (en) 2021-06-17 2022-03-08 International Business Machines Corporation Data conversion to/from selected data type with implied rounding mode
US11797270B2 (en) 2021-06-17 2023-10-24 International Business Machines Corporation Single function to perform multiple operations with distinct operation parameter validation
US11669331B2 (en) 2021-06-17 2023-06-06 International Business Machines Corporation Neural network processing assist instruction
US11693692B2 (en) 2021-06-17 2023-07-04 International Business Machines Corporation Program event recording storage alteration processing for a neural network accelerator instruction
US11694733B2 (en) 2021-08-19 2023-07-04 Apple Inc. Acceleration of in-memory-compute arrays
US11494321B1 (en) * 2021-09-30 2022-11-08 Amazon Technologies, Inc. State buffer memloc reshaping
KR102395743B1 (en) * 2021-11-09 2022-05-09 오픈엣지테크놀로지 주식회사 Pooling method for 1-dimensional array and a device for the same
CN115599442B (en) * 2022-12-14 2023-03-10 成都登临科技有限公司 AI chip, electronic equipment and tensor processing method
CN117093509B (en) * 2023-10-18 2024-01-26 上海为旌科技有限公司 On-chip memory address allocation method and system based on greedy algorithm

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001117900A (en) 1999-10-19 2001-04-27 Fuji Xerox Co Ltd Neural network arithmetic device
JP3251947B2 (en) 1991-03-27 2002-01-28 株式会社日立国際電気 Automatic gain control circuit
JP2010134697A (en) 2008-12-04 2010-06-17 Canon Inc Convolution operation circuit, hierarchical convolution operation circuit, and object recognition device
US20150199963A1 (en) 2012-10-23 2015-07-16 Google Inc. Mobile speech recognition hardware accelerator
WO2016118257A1 (en) 2015-01-22 2016-07-28 Qualcomm Incorporated Model compression and fine-tuning

Family Cites Families (69)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3754128A (en) 1971-08-31 1973-08-21 M Corinthios High speed signal processor for vector transformation
JPS4874139A (en) 1971-12-29 1973-10-05
JPS5364439A (en) 1976-11-20 1978-06-08 Agency Of Ind Science & Technol Linear coversion system
JPS58134357A (en) 1982-02-03 1983-08-10 Hitachi Ltd Array processor
DE3586692T2 (en) 1984-03-29 1993-02-18 Toshiba Kawasaki Kk ARITHMETIC CONVOLUTION CIRCUIT FOR DIGITAL SIGNAL PROCESSING.
US5267185A (en) 1989-04-14 1993-11-30 Sharp Kabushiki Kaisha Apparatus for calculating matrices
US5138695A (en) 1989-10-10 1992-08-11 Hnc, Inc. Systolic array image processing system
JPH03167664A (en) 1989-11-28 1991-07-19 Nec Corp Matrix arithmetic circuit
JP3210319B2 (en) * 1990-03-01 2001-09-17 株式会社東芝 Neurochip and neurocomputer using the chip
EP0485522A4 (en) 1990-05-30 1993-08-04 Daniel W. Hammerstrom Neural network using virtual-zero
WO1991019267A1 (en) 1990-06-06 1991-12-12 Hughes Aircraft Company Neural network processor
JP3318753B2 (en) 1991-12-05 2002-08-26 ソニー株式会社 Product-sum operation device and product-sum operation method
AU658066B2 (en) 1992-09-10 1995-03-30 Deere & Company Neural network based control system
JPH06139218A (en) * 1992-10-30 1994-05-20 Hitachi Ltd Method and device for simulating neural network completely in parallel by using digital integrated circuit
JPH076146A (en) * 1993-06-18 1995-01-10 Fujitsu Ltd Parallel data processing system
US6067536A (en) 1996-05-30 2000-05-23 Matsushita Electric Industrial Co., Ltd. Neural network for voice and pattern recognition
US5742741A (en) 1996-07-18 1998-04-21 Industrial Technology Research Institute Reconfigurable neural network
EP0834817B1 (en) 1996-10-01 2000-08-02 FINMECCANICA S.p.A. AZIENDA ANSALDO Programmed neural module
US5905757A (en) 1996-10-04 1999-05-18 Motorola, Inc. Filter co-processor
JPH117432A (en) * 1997-06-16 1999-01-12 Hitachi Ltd Information processor and semiconductor device
US6243734B1 (en) * 1998-10-30 2001-06-05 Intel Corporation Computer product and method for sparse matrices
US20020044695A1 (en) 2000-05-05 2002-04-18 Bostrom Alistair K. Method for wavelet-based compression of video images
JP2003244190A (en) 2002-02-19 2003-08-29 Matsushita Electric Ind Co Ltd Processor for data flow control switch and data flow control switch
US7016529B2 (en) 2002-03-15 2006-03-21 Microsoft Corporation System and method facilitating pattern recognition
US7493498B1 (en) 2002-03-27 2009-02-17 Advanced Micro Devices, Inc. Input/output permission bitmaps for compartmentalized security
US20070124565A1 (en) * 2003-06-18 2007-05-31 Ambric, Inc. Reconfigurable processing array having hierarchical communication network
US7426501B2 (en) 2003-07-18 2008-09-16 Knowntech, Llc Nanotechnology neural network methods and systems
US7818729B1 (en) 2003-09-15 2010-10-19 Thomas Plum Automated safe secure techniques for eliminating undefined behavior in computer software
WO2005067572A2 (en) 2004-01-13 2005-07-28 New York University Method, system, storage medium, and data structure for image recognition using multilinear independent component analysis
GB2436377B (en) 2006-03-23 2011-02-23 Cambridge Display Tech Ltd Data processing hardware
CN101441441B (en) 2007-11-21 2010-06-30 新乡市起重机厂有限公司 Design method of intelligent swing-proof control system of crane
JP4513865B2 (en) 2008-01-25 2010-07-28 セイコーエプソン株式会社 Parallel computing device and parallel computing method
US9490848B2 (en) 2008-05-21 2016-11-08 Nxp B.V. Data handling system comprising memory banks and data rearrangement
JP2010039625A (en) * 2008-08-01 2010-02-18 Renesas Technology Corp Parallel arithmetic device
US8321652B2 (en) 2008-08-01 2012-11-27 Infineon Technologies Ag Process and method for logical-to-physical address mapping using a volatile memory device in solid state disks
EP2290563B1 (en) 2009-08-28 2017-12-13 Accenture Global Services Limited Accessing content in a network
US8589600B2 (en) 2009-12-14 2013-11-19 Maxeler Technologies, Ltd. Method of transferring data with offsets
US8595467B2 (en) 2009-12-29 2013-11-26 International Business Machines Corporation Floating point collect and operate
US8457767B2 (en) 2010-12-31 2013-06-04 Brad Radl System and method for real-time industrial process modeling
US8977629B2 (en) * 2011-05-24 2015-03-10 Ebay Inc. Image-based popularity prediction
US8812414B2 (en) 2011-05-31 2014-08-19 International Business Machines Corporation Low-power event-driven neural computing architecture in neural networks
JP5911165B2 (en) * 2011-08-05 2016-04-27 株式会社メガチップス Image recognition device
US8909576B2 (en) 2011-09-16 2014-12-09 International Business Machines Corporation Neuromorphic event-driven neural computing architecture in a scalable neural network
US9201828B2 (en) * 2012-10-23 2015-12-01 Analog Devices, Inc. Memory interconnect network architecture for vector processor
KR101772299B1 (en) * 2012-12-28 2017-08-28 인텔 코포레이션 Instruction to reduce elements in a vector register with strided access pattern
US9811116B2 (en) * 2013-05-24 2017-11-07 Qualcomm Incorporated Utilization and configuration of wireless docking environments
US20150071020A1 (en) * 2013-09-06 2015-03-12 Sony Corporation Memory device comprising tiles with shared read and write circuits
US20160026912A1 (en) 2014-07-22 2016-01-28 Intel Corporation Weight-shifting mechanism for convolutional neural networks
ES2880316T3 (en) 2014-08-29 2021-11-24 Google Llc Image processing using deep neural networks
CN104463209B (en) 2014-12-08 2017-05-24 福建坤华仪自动化仪器仪表有限公司 Method for recognizing digital code on PCB based on BP neural network
US10013652B2 (en) 2015-04-29 2018-07-03 Nuance Communications, Inc. Fast deep neural network feature transformation via optimized memory bandwidth utilization
US10262259B2 (en) 2015-05-08 2019-04-16 Qualcomm Incorporated Bit width selection for fixed point neural networks
US10489703B2 (en) * 2015-05-20 2019-11-26 Nec Corporation Memory efficiency for convolutional neural networks operating on graphics processing units
US9747546B2 (en) * 2015-05-21 2017-08-29 Google Inc. Neural network processor
US10380064B2 (en) 2015-10-08 2019-08-13 Via Alliance Semiconductor Co., Ltd. Neural network unit employing user-supplied reciprocal for normalizing an accumulated value
US9875104B2 (en) * 2016-02-03 2018-01-23 Google Llc Accessing data in multi-dimensional tensors
US10552119B2 (en) 2016-04-29 2020-02-04 Intel Corporation Dynamic management of numerical representation in a distributed matrix processor architecture
CN106023065B (en) 2016-05-13 2019-02-19 中国矿业大学 A kind of tensor type high spectrum image spectral-spatial dimension reduction method based on depth convolutional neural networks
CN106127297B (en) 2016-06-02 2019-07-12 中国科学院自动化研究所 The acceleration of depth convolutional neural networks based on tensor resolution and compression method
US10360163B2 (en) 2016-10-27 2019-07-23 Google Llc Exploiting input data sparsity in neural network compute units
US9959498B1 (en) 2016-10-27 2018-05-01 Google Llc Neural network instruction set architecture
US10175980B2 (en) * 2016-10-27 2019-01-08 Google Llc Neural network compute tile
US10733505B2 (en) * 2016-11-10 2020-08-04 Google Llc Performing kernel striding in hardware
US10037490B2 (en) * 2016-12-13 2018-07-31 Google Llc Performing average pooling in hardware
CN106529511B (en) 2016-12-13 2019-12-10 北京旷视科技有限公司 image structuring method and device
US20180189675A1 (en) * 2016-12-31 2018-07-05 Intel Corporation Hardware accelerator architecture and template for web-scale k-means clustering
US11164071B2 (en) * 2017-04-18 2021-11-02 Samsung Electronics Co., Ltd. Method and apparatus for reducing computational complexity of convolutional neural networks
US10621489B2 (en) * 2018-03-30 2020-04-14 International Business Machines Corporation Massively parallel neural inference computing elements
US10572409B1 (en) * 2018-05-10 2020-02-25 Xilinx, Inc. Sparse matrix processing circuitry

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3251947B2 (en) 1991-03-27 2002-01-28 株式会社日立国際電気 Automatic gain control circuit
JP2001117900A (en) 1999-10-19 2001-04-27 Fuji Xerox Co Ltd Neural network arithmetic device
JP2010134697A (en) 2008-12-04 2010-06-17 Canon Inc Convolution operation circuit, hierarchical convolution operation circuit, and object recognition device
US20110239032A1 (en) 2008-12-04 2011-09-29 Canon Kabushiki Kaisha Convolution operation circuit and object recognition apparatus
US20150199963A1 (en) 2012-10-23 2015-07-16 Google Inc. Mobile speech recognition hardware accelerator
WO2016118257A1 (en) 2015-01-22 2016-07-28 Qualcomm Incorporated Model compression and fine-tuning

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
下川 勝千(外2名),「ディジタルニューロコンピュータ MULTINEURO」,東芝レビュー,日本,株式会社 東芝,1991年12月01日,Vol.46, No.12,第931~934頁,ISSN: 0372-0462.
内園陽平(外2名),「動的グラフ信号に対する多重スケール変換」,電子情報通信学会技術研究報告,日本,一般社団法人電子情報通信学会,2016年01月11日,Vol.115, No.396,第231~236頁,ISSN: 0913-5685.
斎藤康毅,「ゼロから作るDeep Learning - Pythonで学ぶディープラーニングの理論と実装」,初版,日本,株式会社オライリー・ジャパン,2016年09月28日,第13~14頁,ISBN: 978-4-87311-758-4.
渡邊栄治(外1名),「PCクラスタによる階層型ニューラルネットワークの協調学習法」,電子情報通信学会技術研究報告,日本,社団法人電子情報通信学会,2000年11月17日,Vol.100, No.466,第79~86頁,ISSN: 0913-5685.
牧田 淳子(外5名),「1.2GFLOPSニューロチップ用S/Wシミュレータの開発」,情報処理学会第50回(平成7年前期)全国大会 講演論文集(6),日本,社団法人 情報処理学会,1995年03月15日,第6-63~6-64頁.

Also Published As

Publication number Publication date
GB2555936A (en) 2018-05-16
KR102387334B1 (en) 2022-04-15
JP2019537793A (en) 2019-12-26
DE202017105708U1 (en) 2018-01-03
KR20210129270A (en) 2021-10-27
JP2022046552A (en) 2022-03-23
US10175980B2 (en) 2019-01-08
US20190213005A1 (en) 2019-07-11
US9710265B1 (en) 2017-07-18
US11816480B2 (en) 2023-11-14
KR20190066058A (en) 2019-06-12
KR102317668B1 (en) 2021-10-26
DE102017121825A1 (en) 2018-05-03
WO2018080617A1 (en) 2018-05-03
US20180121196A1 (en) 2018-05-03
GB2555936B (en) 2019-01-30
GB201714815D0 (en) 2017-11-01
CN207895435U (en) 2018-09-21
HK1254698A1 (en) 2019-07-26
SG11201903684RA (en) 2019-05-30
EP3533001A1 (en) 2019-09-04
US20230004386A1 (en) 2023-01-05
CN108009106A (en) 2018-05-08
JP7451483B2 (en) 2024-03-18
US11422801B2 (en) 2022-08-23

Similar Documents

Publication Publication Date Title
JP6995851B2 (en) Neural network calculation tile
JP7171622B2 (en) Neural network accelerator with on-chip resident parameters
US20220245453A1 (en) Redistributing tensor elements between machine learning computing units
EP4014122A1 (en) Hardware circuit for accelerating neural network computations
US20230418677A1 (en) Preemption in a machine learning hardware accelerator
JP2024520326A (en) Hierarchical compilation and execution on machine learning hardware accelerators

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190930

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190930

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201201

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20210226

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20210428

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210601

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20211116

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211215

R150 Certificate of patent or registration of utility model

Ref document number: 6995851

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150