# US 2025/0148264 A1 · Hardware implementation of windowed operations in three or more dimensions

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0148264 A1
- Document ID: US20250148264A1
- Status: Published application
- Kind: A1
- Application number: 19/018,414
- Filed: 2025-01-13
- Published: 2025-05-08
- Earliest claimed: 2020-09-22
- Assignees: Imagination Technologies Limited
- Applicants: Imagination Technologies Limited
- Inventors: Ivaxi Sheth; Aria Ahmadi; James Imber; Cagatay Dikici
- Web page: https://patentgrep.com/patent/US20250148264A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 3/063: using electronic means
- G06F 17/153: {Multidimensional correlation or convolution}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A windowed operation is implemented in at least three traversed dimensions. The windowed operation applies a window having at least three dimensions to data having at least three traversed dimensions, with shifts of the window in all three traversed dimensions. Two dimensions of the at least three traversed dimensions are selected, and the windowed operation is mapped to a plurality of constituent 2-D windowed operations in the selected two dimensions, the 2-D windowed operations applying a slice of the window to a slice of the data, with shifts of the slice of the window in only two dimensions. Each of the plurality of 2-D windowed operations is implemented by at least one hardware accelerator, each 2-D windowed operation producing a respective partial result, and the partial results are assembled to produce the result of the windowed operation.

## Claims

### Claim 1

A method of implementing a windowed operation in at least three traversed dimensions, the windowed operation comprising applying a window having at least three dimensions to data having at least three traversed dimensions, with shifts of the window in all three traversed dimensions, the method comprising:
selecting two dimensions of the at least three traversed dimensions;
mapping the windowed operation to a plurality of constituent 2-D windowed operations in the selected two dimensions, each 2-D windowed operation comprising applying a slice of the window to a slice of the data, with shifts of the slice of the window in only two dimensions;
implementing each of the plurality of 2-D windowed operations by at least one hardware accelerator, each 2-D windowed operation producing a respective partial result; and
assembling the partial results to produce the result of the windowed operation.

### Claim 2 (depends on 1)

The method of claim 1, wherein the selected two dimensions are the two dimensions of the at least three traversed dimensions with the largest number of shifts of the window.

### Claim 3 (depends on 1)

The method of claim 1, wherein the data comprises zero-padded data, and wherein mapping the windowed operation to the plurality of constituent 2-D windowed operations comprises:
excluding from the plurality of constituent 2-D windowed operations a 2-D windowed operation that would be applied to a slice of the zero-padded data that consists solely of zeros.

### Claim 4 (depends on 1)

The method of claim 1, further comprising, when implementing one of the plurality of 2-D windowed operations in the at least one hardware accelerator, storing at least a part of the slice of the data or at least a part of the slice of the window in a local memory of the at least one hardware accelerator, and
when subsequently implementing another one of the plurality of 2-D windowed operations in the at least one hardware accelerator, reusing the stored part.

### Claim 5 (depends on 1)

The method of claim 1, wherein the windowed operation is one of:
a convolution operation, wherein each of the 2-D windowed operations is a 2-D convolution operation, and wherein assembling the partial results comprises combining them by summing the partial results;
a maximum operation, wherein each of the 2-D windowed operations is a maximum operation, and wherein assembling the partial results comprises combining them by identifying the maximum among the partial results;
a minimum operation, wherein each of the 2-D windowed operations is a minimum operation, and wherein assembling the partial results comprises combining them by identifying the minimum among the partial results; and
a mean pooling operation, wherein each of the 2-D windowed operations is a mean pooling operation, and wherein assembling the partial results comprises combining them by calculating the mean of the partial results.

### Claim 6 (depends on 1)

The method of claim 1, wherein the windowed operation includes a bias addition, wherein mapping the windowed operation to the plurality of constituent 2-D windowed operations comprises mapping the bias addition to a selected one of the 2-D windowed operations, wherein the bias addition is performed in the at least one hardware accelerator as part of the selected 2-D windowed operation.

### Claim 7 (depends on 1)

The method of claim 1, wherein the data comprises one of the following, or a derivative thereof:
video data comprising two spatial dimensions and one temporal dimension; and
volumetric data, comprising three spatial dimensions.

### Claim 8 (depends on 1)

The method of claim 1, wherein the windowed operation is performed as part of a neural network comprising a plurality of layers,
the method comprising:
identifying, in the plurality of layers, a windowed operation in at least three traversed dimensions, which is not supported by the at least one hardware accelerator;
mapping the neural network to a restructured neural network; and
implementing the restructured neural network by the at least one hardware accelerator,
wherein the identified windowed operation in the neural network is replaced in the restructured neural network with a plurality of 2-D windowed operations producing partial results and a plurality of elementwise operations that combine the partial results.

### Claim 9

A data processing system for implementing a windowed operation in at least three traversed dimensions, the windowed operation comprising applying a window having at least three dimensions to data having at least three traversed dimensions, with shifts of the window in all three traversed dimensions, the data processing system comprising:
a transformation unit, configured to select two dimensions of the at least three traversed dimensions and map the windowed operation to a plurality of constituent 2-D windowed operations in the selected two dimensions, each 2-D windowed operation comprising applying a slice of the window to a slice of the data, with shifts of the slice of the window in only two dimensions;
at least one hardware accelerator, comprising circuitry configured to implement the plurality of 2-D windowed operations, each 2-D windowed operation producing a respective partial result; and
an assembly unit, configured to assemble the partial results to produce the result of the windowed operation.

### Claim 10 (depends on 9)

The data processing system of claim 9, wherein the at least one hardware accelerator comprises any one, or any combination of two or more of:
one or more convolution engines, comprising circuitry configured to perform convolution calculations;
a pooling unit, comprising circuitry configured to perform a pooling operation;
an element-wise operations module, comprising circuitry configured to perform element-wise operations on the elements of two or more tensors;
the assembly unit; and
an activation unit, comprising circuitry configured to implement an activation function of a neural network layer.

### Claim 11 (depends on 9)

The data processing system of claim 9, wherein the windowed operation in at least three traversed dimensions is a first windowed operation, forming one layer of a neural network comprising a plurality of layers, the plurality of constituent 2-D windowed operations is a first plurality of constituent 2-D windowed operations, and the partial results are first partial results,
wherein the transformation unit is configured to map the neural network to a restructured neural network, wherein the first windowed operation is mapped to the first plurality of constituent 2-D windowed operations.

### Claim 12 (depends on 11)

The data processing system of claim 11, wherein the neural network comprises another layer comprising a second windowed operation in at least three traversed dimensions, wherein the transformation unit is configured to map the second windowed operation to a second plurality of constituent 2-D windowed operations, and wherein the at least one hardware accelerator is further configured to implement the second plurality of constituent 2-D windowed operations.

### Claim 13 (depends on 12)

The data processing system of claim 12, wherein each of the second plurality of constituent 2-D windowed operations produces a respective second partial result, wherein the assembly unit is configured to assemble the second partial results to produce the result of the second windowed operation.

### Claim 14 (depends on 11)

The data processing system of claim 11, wherein the transformation unit is configured to, when mapping the neural network to the restructured neural network,
identify that the first windowed operation is not supported by the at least one hardware accelerator, and
in response, map the first windowed operation to the first plurality of constituent 2-D windowed operations.

### Claim 15 (depends on 12)

The data processing system of claim 12, wherein the first windowed operation and the second windowed operation are arranged in consecutive layers of the neural network, and wherein each first partial result forms a slice of data that is input to a respective one of the second plurality of windowed operations.

### Claim 16 (depends on 9)

The data processing system of claim 9, further comprising a zero-padding optimisation unit, and wherein the data comprises zero-padded data,
wherein the zero-padding optimisation unit is configured to exclude from the plurality of constituent 2-D windowed operations a 2-D windowed operation that would be applied to a slice of the zero-padded data that consists solely of zeros.

### Claim 17 (depends on 1)

A non-transitory computer readable storage medium having stored thereon computer readable code configured to cause the method as set forth in claim 1 to be performed when the code is run.

### Claim 18 (depends on 9)

A non-transitory computer readable medium having stored thereon an integrated circuit definition dataset that, when processed in an integrated circuit manufacturing system, configures the integrated circuit manufacturing system to manufacture a data processing system as set forth in claim 9.

### Claim 19 (depends on 9)

A non-transitory computer readable storage medium having stored thereon a computer readable dataset description of a data processing system or Neural Network Accelerator (NNA) as set forth in claim 9 that, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to manufacture an integrated circuit embodying the data processing system.

### Claim 20 (depends on 9)

An integrated circuit manufacturing system configured to manufacture a data processing system as set forth in claim 9.
