pub fn from_dlpack_f64(
tensor: &DLPackTensor,
) -> Result<Box<dyn Array>, ParseError>Expand description
Ingest from a DLPack tensor: preserve tensor.device() and copy f64 host
elements when the tensor is CPU-addressable; for non-CPU tensors in this
build we still preserve the device tag using host staging only when the
tensor reports f64 data that is readable (host tests tag CUDA with host
bytes). Pure allocate-on-GPU without a backend is allocate_array_on_device.