

ReadonlydimsReadonlylocationSpecify the location of the data to be 'ml-tensor'.
ReadonlymlSpecify the WebNN MLTensor that holds the tensor data.
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.
Get the dimensions of the tensor.