Lossless tiling in convolution networks — padding and re-tilling at section boundaries
Abstract
Disclosed is a method that includes generating by an output processing node of a first section of a processing graph, a plurality of output tiles of an output tensor. The plurality of output tiles of the output tensor is written in a memory, where the writing includes zero-padding the plurality of output tiles of the output tensor in the memory. The zero-padded plurality of output tiles of the output tensor are tiled, to generate a plurality of input tiles of an input tensor. The plurality of input tiles of the input tensor is processed in a second section of the processing graph.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 41 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A non-transitory computer readable storage medium impressed with computer program instructions that, when executed on a processor, implement a method comprising: generating by an output processing node of a first section of a processing graph, a plurality of output tiles of an output tensor, individual output tiles in the plurality of output tiles having a first size; writing the plurality of output tiles of the output tensor in a memory, wherein the writing comprises zero-padding the plurality of output tiles of the output tensor in the memory to create a zero-padded plurality of output tiles; tiling the zero-padded plurality of output tiles of the output tensor to generate a plurality of input tiles of an input tensor, individual input files in the plurality of input tiles having a second size that is larger than the first size; and processing the plurality of input tiles of the input tensor in a second section of the processing graph.
- Claim 2Depends on #1
The non-transitory computer readable storage medium of claim 1, further comprising: initializing a plurality of memory locations to zero, the plurality of memory locations including (i) a first subset of memory locations, and (ii) a second subset of memory locations surrounding the first subset of memory locations, wherein writing the plurality of output tiles comprises writing the plurality of output tiles of the output tensor in the first subset of memory locations in the memory, and wherein the plurality of output tiles in the first subset of memory locations is surrounded by zeros in the second subset of memory locations.
- Claim 3Depends on #2
The non-transitory computer readable storage medium of claim 2, wherein the zero-padded plurality of output tiles of the output tensor comprises an aggregate of (i) the plurality of output tiles in the first subset of memory locations and (ii) the zeros in the second subset of memory locations.
- Claim 4Depends on #2
The non-transitory computer readable storage medium of claim 2, wherein writing the plurality of output tiles further comprises: sequentially writing the plurality of output tiles of the output tensor in the first subset of memory locations in the memory, such that a first output tile of the plurality of output tiles of the output tensor is written to a first section of the first subset of memory locations, followed by writing of a second output tile of the plurality of output tiles of the output tensor to a second section of the first subset of memory locations.
- Claim 5Depends on #2
The non-transitory computer readable storage medium of claim 2, wherein writing the plurality of output tiles further comprises: at least in part parallelly writing the plurality of output tiles of the output tensor in the first subset of memory locations in the memory, such that a first output tile of the plurality of output tiles of the output tensor is written to a first section of the first subset of memory locations at least in part simultaneously with writing of a second output tile of the plurality of output tiles of the output tensor to a second section of the first subset of memory locations.
- Claim 6Depends on #2
The non-transitory computer readable storage medium of claim 2, wherein tiling the zero-padded plurality of output tiles of the output tensor comprises: tiling a combination of (i) the plurality of output tiles of the output tensor in the first subset of memory locations and (ii) the zeros in the second subset of memory locations surrounding the plurality of output tiles of the output tensor.
- Claim 7Depends on #1
The non-transitory computer readable storage medium of claim 1, wherein: one or more first input tiles of the plurality of input tiles of the input tensor have zero padding along one or more edges, and one or more second input tiles of the plurality of input tiles of the input tensor do not have zero padding along any edge.
- Claim 8Depends on #7
The non-transitory computer readable storage medium of claim 7, wherein: the one or more first input tiles of the plurality of input tiles of the input tensor have zero padding along those edges that coincide with edges of the input tensor.
- Claim 9Depends on #1
The non-transitory computer readable storage medium of claim 1, wherein: a first input tile of the plurality of input tiles of the input tensor has zero padding only on a top edge and a left edge; a second input tile of the plurality of input tiles of the input tensor has zero padding only on a top edge and a right edge; a third input tile of the plurality of input tiles of the input tensor has zero padding only on a bottom edge and a left edge; and a fourth input tile of the plurality of input tiles of the input tensor has zero padding only on a bottom edge and a right edge.
- Claim 10Depends on #9
The non-transitory computer readable storage medium of claim 9, wherein: a fifth input tile of the plurality of input tiles of the input tensor has zero padding only on a top edge; a sixth input tile of the plurality of input tiles of the input tensor has zero padding only on a right edge; a seventh input tile of the plurality of input tiles of the input tensor has zero padding only on a bottom edge; an eighth input tile of the plurality of input tiles of the input tensor has zero padding only on a left edge; and a ninth input tile of the plurality of input tiles of the input tensor does not have any zero padding of any of its edges.
- Claim 11Depends on #1
The non-transitory computer readable storage medium of claim 1, wherein: the plurality of output tiles of the output tensor is non-overlapping tiles; and the plurality of input tiles of the input tensor is overlapping tiles.
- Claim 12Independent Claim
A computer implemented method, comprising: generating by an output processing node of a first section of a processing graph, a plurality of output tiles of an output tensor, individual output tiles in the plurality of output tiles having a first size; writing the plurality of output tiles of the output tensor in a memory, wherein the writing comprises zero-padding the plurality of output tiles of the output tensor in the memory to create a zero-padded plurality of output tiles; tiling the zero-padded plurality of output tiles of the output tensor to generate a plurality of input tiles of an input tensor, individual input files in the plurality of input tiles having a second size that is larger than the first size; and processing the plurality of input tiles of the input tensor in a second section of the processing graph.
- Claim 13Depends on #12
The method of claim 12, further comprising: initializing a plurality of memory locations to zero, the plurality of memory locations including (i) a first subset of memory locations, and (ii) a second subset of memory locations surrounding the first subset of memory locations, wherein writing the plurality of output tiles comprises writing the plurality of output tiles of the output tensor in the first subset of memory locations in the memory, and wherein the plurality of output tiles in the first subset of memory locations is surrounded by zeros in the second subset of memory locations.
- Claim 14Depends on #12
The method of claim 12, wherein: one or more first input tiles of the plurality of input tiles of the input tensor have zero padding along one or more edges that coincide with edges of the input tensor, and one or more second input tiles of the plurality of input tiles of the input tensor do not have zero padding along any edge.
- Claim 15Depends on #12
The method of claim 12, wherein: a first input tile of the plurality of input tiles of the input tensor has zero padding only on a top edge and a left edge; a second input tile of the plurality of input tiles of the input tensor has zero padding only on a top edge and a right edge; a third input tile of the plurality of input tiles of the input tensor has zero padding only on a bottom edge and a left edge; a fourth input tile of the plurality of input tiles of the input tensor has zero padding only on a bottom edge and a right edge; a fifth input tile of the plurality of input tiles of the input tensor has zero padding only on a top edge; a sixth input tile of the plurality of input tiles of the input tensor has zero padding only on a right edge; a seventh input tile of the plurality of input tiles of the input tensor has zero padding only on a bottom edge; an eighth input tile of the plurality of input tiles of the input tensor has zero padding only on a left edge; and a ninth input tile of the plurality of input tiles of the input tensor does not have any zero padding of any of its edges.
- Claim 16Depends on #12
The method of claim 12, wherein: the plurality of output tiles of the output tensor is non-overlapping tiles; and the plurality of input tiles of the input tensor is overlapping tiles.
- Claim 17Independent Claim
A data processing system, comprising: runtime logic configured to: generate, at an output processing node of a first section of a processing graph, a plurality of output tiles of an output tensor, individual output tiles in the plurality of output tiles having a first size, write the plurality of output tiles of the output tensor in a memory, wherein the writing comprises zero-padding the plurality of output tiles of the output tensor in the memory to create a zero-padded plurality of output tiles, tile the zero-padded plurality of output tiles of the output tensor to generate a plurality of input tiles of an input tensor, individual input files in the plurality of input tiles having a second size that is larger than the first size, and process the plurality of input tiles of the input tensor in a second section of the processing graph.
- Claim 18Depends on #17
The data processing system of claim 17, wherein the runtime logic is further configured to: initialize a plurality of memory locations to zero, the plurality of memory locations including (i) a first subset of memory locations, and (ii) a second subset of memory locations surrounding the first subset of memory locations; and write the plurality of output tiles of the output tensor in the first subset of memory locations in the memory, wherein the plurality of output tiles in the first subset of memory locations is surrounded by zeros in the second subset of memory locations.
- Claim 19Depends on #18
The data processing system of claim 18, wherein: the first section and the second section of the processing graph are executed in one or more processing units that are in an Integrated Circuit (IC) chip; and the memory is external to the IC chip.
- Claim 20Depends on #17
The data processing system of claim 17, wherein: the plurality of output tiles of the output tensor is non-overlapping tiles; and the plurality of input tiles of the input tensor is overlapping tiles.
Technical Overview & Description
PRIORITY APPLICATION This application is a divisional of U.S. patent application Ser. No. 17/216,652, entitled “ LOSSLESS TILING IN CONVOLUTION NETWORKS — SECTION BOUNDARIES, ” filed Mar. 29, 2021. The non-provisional application is incorporated by reference for all purposes. FIELD OF THE TECHNOLOGY DISCLOSED The technology disclosed relates to enhanced tiling within a neural network, which can be implemented using processors like Central Processing Units (CPUs), Graphics Processing Units (GPUs), Field Programmable Gate Arrays (FPGAs), Coarse-Grained Reconfigurable Architectures (CGAS), Application-Specific Integrated Circuits (ASICs), Application Specific Instruction-set Processor (ASIP), and Digital Signal Processors (DSPs). In particular, the technology disclosed relates to using tiling to process relatively large input sizes. INCORPORATIONS The following are incorporated by reference for all purposes as if fully set forth herein: Prabhakar et al., “ Plasticine: A Reconfigurable Architecture for Parallel Patterns, ” ISCA '17, Jun. 24-28, 2017, Toronto, ON, Canada; Koeplinger et al., “ Spatial: A Language And Compiler For Application Accelerators, ” Proceedings Of The 39 th ACM SIGPLAN Conference On Programming Language Design And Implementation (PLDI), Proceedings of the 43rd International Symposium on Computer Architecture, 2018; U.S. Non-provisional patent application Ser. No. 16/239,252, filed Jan. 3, 2019, entitled, “ VIRTUALIZATION OF A RECONFIGURABLE DATA PROCESSOR, ” ; U.S. Non-provisional patent application Ser. No. 16/197,826, filed Nov. 21, 2018, entitled, “ CONFIGURATION LOAD OF A RECONFIGURABLE DATA PROCESSOR, ” ; U.S. Non-provisional patent application Ser. No. 16/198,086, filed Nov. 21, 2018, entitled, “ CONFIGURATION UNLOAD OF A RECONFIGURABLE DATA PROCESSOR, ” ;
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 (41)
Non-Patent Literature (10)
- Le et al.
- “
- Tiled convolutional neural networks.
- ”
- Advances in neural information processing systems 23 (2010); Total pp. 6 (Year: 2010).
- Lin et al., GrateTile: Efficient Sparse Tensor Tiling for CNN Processing, arXiv:2009.08685v1 [cs.LG] Sep. 18, 2020; Total pp. 6 (Year: 2020).
- Podobas et al, A Survey on Coarse-Grained Reconfigurable Architectures From a Performance Perspective, IEEEAccess, vol. 2020.3012084, Jul. 27, 2020, 25 pages.
- U.S. Appl. No. 17/216,651 Response to First Office Action, dated Jul. 13, 2021, filed Jul. 23, 2021, 14 pages.
- U.S. Appl. No. 17/216,651 Notice of Allowance, dated Aug. 5, 2021, 14 pages.
- Ren et. al., SBNet: Sparse Blocks Network for Fast Inference, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018, pp. 8711-8720.