hottub.patents
US 12,277,488 B2#3568106 Most CitedActiveUnited States (USPTO)Utility

Buffer addressing for a convolutional neural network

0Forward Citations (#3568106 Global)
0.0/yrCitation Velocity (#3568106 Global)
0.00Citation PageRank (#3568106 Global)
15Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

A method for providing input data for a layer of a convolutional neural network (CNN). Input data is received comprising input data values to be processed in a layer of the CNN. Addresses in banked memory of a buffer are determined in which the received data values are to be stored based upon format data indicating a format parameter of the input data in the layer and indicating a format parameter of a filter which is to be used to process the input data in the layer. The received input data values are stored at the determined addresses in the buffer for retrieval for processing in the layer.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method of storing input data for a layer of a convolutional neural network (CNN) in a buffer comprising a plurality of banks for processing, the method comprising: receiving input data comprising input data values to be processed in a layer of the CNN, each input data value has a position in the input data defined by x, y and p coordinates reflecting a column, row and plane of the input data value respectively; determining addresses in the buffer in which the received input data values are to be stored dependent on a dimension of the input data and a dimension of a filter to be applied to the input data; keeping a cursor for one or more salient positions to reduce arithmetic performed to determine the addresses in the buffer in which the received input data values are to be stored; and storing the received input data values at the determined addresses in the buffer for retrieval for processing in the layer.

  2. Claim 2Depends on #1

    The method of claim 1, wherein the one or more salient positions comprise one or more of: a (0,0,0) filter value for a start of a current output row and column; a (0, y, 0) filter value for the start of the current output row and column; a (x, y, 0) filter value for the start of the current output row and column; and a (x, y, p) filter value for the start of the current output row and column.

  3. Claim 3Depends on #1

    The method of claim 1, wherein an address for at least one input data value is determined from the cursor and a difference between x, y and p coordinates for the at least one input data value and x, y and p co-ordinates of one of the one or more salient positions respectively.

  4. Claim 4Depends on #1

    The method of claim 1, wherein each bank comprises a number of words, and the cursor comprises a two-value array in the form: cursor( x,y,p)=(RasterAddr( x,y,p),RAMSEL( x,y,p)) wherein RasterAddr(x,y,p)=(x*P+p+y*WordsPerLine) % (RAMSIZE*N=), RAMSEL(x,y,p) indicates a bank of the buffer, WordsPerLine is a value that indicates a number of words of each bank that will be required to store a row of the input data, P is the number of planes in the input data, RAMSIZE is a number of addresses in each bank, and N B is the number of banks.

  5. Claim 5Depends on #4

    The method of claim 4, wherein WordsPerLine is equal to: floor ( ( P * X + N B - 1 N B)) * N B wherein X is a number of columns of the input data.

  6. Claim 6Depends on #4

    The method of claim 4, wherein each address in the buffer is defined by a first value, RAMSEL, indicating a bank of the buffer, and a second value, MEMADDR, indicating a memory location within the bank.

  7. Claim 7Depends on #6

    The method of claim 6, wherein MEMADDR ⁡ ( x, y, z) = RasterAddr ⁡ ( x, y, p) N B.

  8. Claim 8Depends on #4

    The method of claim 4, wherein determining an address for an input data value comprises determining RasterAddr(x+ Δ x, y+ Δ y, p+ Δ p), wherein: RasterAddr ′ =RasterAddr( x,y,p)+ Δ x*P+ Δ p+ Δ y *WordsPerLine; and if RasterAddr ′ is < RAMSIZE*N B then RasterAddr(x+ Δ x,y+ Δ y,p+ Δ p)=RasterAddr ′, else RasterAddr(x+ Δ x, y+ Δ y, p+ Δ p)=RasterAddr ′ − RAMSIZE*N B.

Technical Overview & Description

BACKGROUND A Convolutional Neural Network (CNN) is a type of artificial neural network that can be used for machine learning applications. In particular, a CNN can be used in signal processing applications, including image processing and computer vision applications. In order to implement a CNN, it may be possible to produce a hardware accelerator. The hardware accelerator may be a specific hardware implementation configured to implement a specific CNN or may be a generalised hardware implementation configured to implement different CNNs (or any CNNs). In some hardware accelerators for implementing a CNN, the hardware may be required to process a significant amount of input data at a high rate of throughput. Therefore, it is necessary for the hardware to buffer input data in a manner that ensures that a consistent rate of data input into the calculation portion of the hardware is maintained. It is desirable for each layer of a CNN to be processed by the hardware in a relatively similar amount of time. This is particularly challenging for hardware implementing a CNN since, in typical CNN applications, the input data has different dimensionality in each layer. Addressing schemes which are used to determine memory addresses used to store input data in a buffer for retrieval when the input data is processed by the CNN may be configured to efficiently store input data for some layers but may not be appropriate for the data format of other layers. There is therefore a need for an improved approach to improving the performance and data throughput of hardware configured to implement a CNN. SUMMARY This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Hardware logic, such as a hardware accelerator, may

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (15)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Du et al;
  • “
  • Shidiannao: Shifting Vision Processing Closer to the Sensor
  • ”
  • ; Proceedings of the 42nd Annual International Symposium on Computer Architecture; Jan. 1, 2015; pp. 92-104 (Year: 2015).
  • Chen et al.,
  • “
  • Eyeriss: A Spatial Architecture for Energy-Efficient Dataflow for Convolutional Neural Networks
  • ”
  • , 2016, IEEE, pp. 367-379 (Year: 2016).