ReadonlydimsGet the dimensions of the tensor.
ReadonlygpuSpecify the WebGPU buffer that holds the tensor data.
ReadonlylocationSpecify the location of the data to be 'gpu-buffer'.
ReadonlytypeSpecify the data type of the tensor.
Optionaldisposean optional callback function that will be called when the tensor is disposed.
If not provided, the tensor treat the GPU data as external resource.
Optionaldownloadan optional callback function to download data from GPU to CPU.
If not provided, the tensor treat the GPU data as external resource.
represent the parameter for constructing a tensor from a WebGPU buffer