Represents a tensor on the GPU, which is a buffer of values with a shape.
More...
#include <gpu.h>
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.
Definition at line 96 of file gpu.h.
◆ data
Definition at line 97 of file gpu.h.
◆ shape
Definition at line 98 of file gpu.h.
The documentation for this struct was generated from the following file: