Data handle for device memory
Represents tensor data residing on a specific device. The actual data representation is device-specific and opaque to the core library.
// CPU device might store ArrayBuffer// WebGPU device might store GPUBuffer// CUDA device might store device pointer Copy
// CPU device might store ArrayBuffer// WebGPU device might store GPUBuffer// CUDA device might store device pointer
Readonly
Size of the data in bytes
Device that manages this data
Data handle for device memory
Represents tensor data residing on a specific device. The actual data representation is device-specific and opaque to the core library.
Example