pub fn download_webgpu_tensor(
rt: &WebGpuRuntime,
tensor: &Tensor,
) -> Result<Tensor>Expand description
Download a CubeCL-managed WebGPU tensor back to host memory.
§Examples
use tenferro_gpu::{webgpu::download_webgpu_tensor, webgpu::WebGpuRuntime};
use tenferro_tensor::{Result, Tensor};
let _download: fn(&WebGpuRuntime, &Tensor) -> Result<Tensor> = download_webgpu_tensor;§Errors
Returns crate::Error::RuntimeState for missing or foreign device state,
crate::Error::BackendSource when queue synchronization/readback fails,
or a typed validation error when bytes do not match the tensor shape.