Readonly
dimsGet the dimensions of the tensor.
Readonly
gpuSpecify the WebGPU buffer that holds the tensor data.
Readonly
locationSpecify the location of the data to be 'gpu-buffer'.
Readonly
typeSpecify the data type of the tensor.
Optional
disposeOptional
downloadan optional callback function to download data from GPU to CPU.
If not provided, the tensor treat the GPU data as external resource.
Generated using TypeDoc
represent the parameter for constructing a tensor from a WebGPU buffer