torch.TensorStorage
export type TensorStorage =
| { device: 'webgpu'; buffer: GPUBuffer }
| { device: 'cpu'; data: TypedStorage };Values
{ device: 'webgpu'; buffer: GPUBuffer }{ device: 'cpu'; data: TypedStorage }
Discriminated union for tensor storage across devices. Using a single field approach - device acts as discriminator.