Loading...

Searching...

No Matches

gpu::Tensor Struct Reference

Represents a tensor on the GPU, which is a buffer of values with a shape. More...

`#include <gpu.h>`

## Public Attributes | |

Array | data |

Shape | shape |

Represents a tensor on the GPU, which is a buffer of values with a shape.

Tensor createTensor(TensorPool &pool, WGPUDevice &device, const Shape &shape, NumType dtype, WGPUBufferUsageFlags usage=WGPUBufferUsage_Storage|WGPUBufferUsage_CopyDst|WGPUBufferUsage_CopySrc)

Tensor factory function to create a tensor (a Tensor type is simply an Array with an N-dimensional Sh...

Represents a tensor on the GPU, which is a buffer of values with a shape.

The documentation for this struct was generated from the following file: