Methods and systems for performing a sparse submanifold convolution on a GPU
Abstract
Methods of implementing a sparse submanifold convolution on a graphics processing unit. The methods include: receiving, at the graphics processing unit, an input tensor in a dense format; identifying, at the graphics processing unit, active positions of the input tensor; performing, at the graphics processing unit, an indexed unfold operation on the input tensor based on the identified active positions to generate an input matrix comprising elements of the input tensor in each active window of the input tensor; and performing, at the graphics processing unit, a matrix multiplication between a weight matrix and the input matrix to generate an output matrix that comprises elements of an output tensor of the sparse submanifold convolution based on the active windows. The methods may further comprise performing, at the graphics processing unit, an indexed fold operation on the output matrix based on the active windows to generate an output tensor in a dense format.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 0.
Claims (20 — 1 Independent, 19 Dependent)
- Claim 1Independent Claim
A method of implementing a sparse submanifold convolution on a graphics processing unit, the method comprising: receiving, at the graphics processing unit, an input tensor in a dense format; identifying, at the graphics processing unit, active positions of the input tensor; for each identified position of the input tensor: performing, by a separate thread at the graphics processing unit, an indexed unfold operation on the input tensor based on the identified active position of the input tensor to generate a column of an input matrix, thereby obtaining an input matrix comprising a column for each active window of the input tensor in which each column comprises elements of the input tensor in the corresponding active window of the input tensor; and performing, at the graphics processing unit, a matrix multiplication between a weight matrix and the input matrix to generate an output matrix wherein the matrix multiplication is performed by processing each column of the input matrix in a separate thread of the graphics processing unit, the output matrix comprising elements of an output tensor of the sparse submanifold convolution based on the active windows.
- Claim 2Depends on #1
The method of claim 1, wherein the input tensor has at least a height dimension, a width dimension and a channel dimension and an active position of the input tensor is a height and width position in which at least one channel of the input tensor has a non-zero element.
- Claim 3Depends on #2
The method of claim 2, wherein identifying the active positions of the input tensor comprises: identifying a height, width, and channel position of each non-zero element in the input tensor; identifying unique height and width pairs from the identified height, width and channel positions; and identifying the unique height and width pairs as the active positions.
- Claim 4Depends on #1
The method of claim 1, wherein an active window of the input tensor is a window of the input tensor, used to generate an element of the output tensor of the sparse submanifold convolution, in which one or more predetermined positions within the window are active positions.
- Claim 5Depends on #1
The method of claim 1, wherein performing the indexed unfold operation on the input tensor comprises identifying, from the identified active positions and one or more parameters of the sparse submanifold convolution, the active windows of the input tensor.
- Claim 6Depends on #5
The method of claim 5, wherein identifying, from the identified active positions and the one or more parameters of the sparse submanifold convolution, the active windows of the input tensor comprises, for each identified active position: determining if the active position is at a predetermined position within a window of the input tensor for the sparse submanifold convolution; and in response to determining that the active position is at the predetermined position within a window of the input tensor for the sparse submanifold convolution, identifying the window as an active window.
- Claim 7Depends on #5
The method of claim 5, wherein the active windows of the input tensor are based on a version of the input tensor that is padded such that when the sparse submanifold convolution has a stride of one in each sparse submanifold convolution dimension there is an active window for each active position, and identifying, from the identified active positions and the one or more parameters of the sparse submanifold convolution, the active windows of the input tensor comprises identifying the active window corresponding to each active position.
- Claim 8Depends on #1
The method of claim 1, wherein performing the indexed unfold operation on the input tensor comprises identifying the elements of the input tensor in each active window.
- Claim 9Depends on #8
The method of claim 8, wherein identifying the elements of the input tensor in an active window comprises implementing a series of nested loops, the series of nested loops comprising a loop for each dimension of an active window that loops from a predetermined position within the window through the elements of the active window in that dimension.
- Claim 10Depends on #1
The method of claim 1, wherein performing the indexed unfold operation on the input tensor comprises storing the elements of each active window in the input matrix.
- Claim 11Depends on #10
The method of claim 10, further comprising receiving a zeroed input matrix, and the elements of each active window of the input tensor are stored in the received input matrix.
- Claim 12Depends on #1
The method of claim 1, further comprising performing, at the graphics processing unit, an indexed fold operation on the output matrix based on the active windows to generate the output tensor of the sparse submanifold convolution in a dense format.
- Claim 13Depends on #12
The method of claim 12, wherein there is an active window for each active position of the input tensor, and performing the indexed fold operation on the output matrix comprises placing each element in the output matrix at the corresponding active position in a channel of the output tensor.
- Claim 14Depends on #13
The method of claim 13, wherein performing the indexed fold operation on the output matrix comprises, for each active window, looping through each channel of the output tensor and placing the element of the output matrix corresponding to that active position and that channel at the active position of that channel in the output tensor.
- Claim 15Depends on #12
The method of claim 12, wherein performing the indexed fold operation on the output matrix comprises identifying a position in the output tensor of each element in the output matrix, based on the active windows and one or more parameters of the sparse submanifold convolution, and placing each element of the output matrix in the corresponding identified position in the output tensor.
- Claim 16Depends on #12
The method of claim 12, further comprising receiving a zeroed output tensor, and the elements of the output matrix are stored in the received output tensor.
- Claim 17Depends on #12
The method of claim 12, wherein performing the indexed fold operation on the output matrix further comprises storing zeroes at each position of the output tensor that does not comprise an element of the output matrix.
- Claim 18Depends on #1
The method of claim 1, wherein the weight matrix comprises a row for each filter to be applied to the input tensor and each row of the weight matrix comprises all weights forming the corresponding filter.
- Claim 19Depends on #1
A graphics processing unit configured to perform the method as set forth in claim 1.
- Claim 20Depends on #1
A non-transitory computer readable storage medium having stored thereon computer readable code configured to cause a graphics processing unit to perform the method as set forth in claim 1 when the code is run.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS AND CLAIM OF PRIORITY This application claims foreign priority under 35 U.S.C. 119 from United Kingdom patent application Nos. 2303116.4, 2303117.2, 2303118.0, 2303119.8, and 2303120.6, all filed on 2 Mar. 2023, the contents of which are incorporated by reference herein in their entirety. TECHNICAL FIELD This application is directed to methods and systems for performing a sparse submanifold convolution on a graphics processing unit (GPU). BACKGROUND As is known to those of skill in the art, a point cloud is a set of individual data points plotted in two-dimensional (2D) or three-dimensional (3D) space. For example, each point in a 3D point cloud may represent a measurement at a particular x, y and z location. A point cloud may be used to represent an object in space. Point clouds may by generated by a sensor, such as, but not limited to, a LiDAR scanner or a depth camera. As is known to those of skill in the art, a LIDAR scanner uses light in the form of a pulsed laser to measure distances. As point clouds do not typically have a point for each possible co-ordinate, point clouds are considered to be sparse datasets. There are a wide range of real-world artificial intelligence applications which point clouds can be used in, such as augmented/virtual reality (e.g. layout detection for interior scenes) and autonomous driving (e.g. to extract the driveable regions). As a result, performing deep learning tasks on point clouds has received significant attention from both academia and industry and artificial neural networks (referred to herein simply as neural networks) have been developed to process point clouds, which may be referred to herein as a point cloud neural networks. As is known to those of skill in the art, a neural network comprises one or more interconnected layers that can be used for machine learning applications. In particular, a neural network can be used in signal processing applications, including, but not limite
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 (11)
Non-Patent Literature (10)
- Vipin Sharma,
- “
- Sparse SubManifold Convolutions,
- ”
- Aug. 27, 2021, 23 pages, https://medium.com/geekculture/3d-sparse-sabmanifold-convolutions-eaa427b3a196.
- Wang et al;
- “
- An Efficient FPGA Accelerator for Point Cloud
- ”
- ; IEEE 35th International System-On-Chip Conference; Sep. 5, 2022; pp. 1-6.