Skip to main content

array_from_dlpack_f64

Function array_from_dlpack_f64 

Source
pub unsafe fn array_from_dlpack_f64<'a>(
    tensor: *const DLTensor,
) -> Result<ArrayViewD<'a, f64>, DlpackError>
Expand description

Generic DLPack array construction — accepts f64 tensors from any framework.

Same as array_from_dlpack_f32 but for 64-bit float tensors.

§Safety

Same invariants as array_from_dlpack_f32, but data must be f64.

§Errors

Returns DlpackError if the tensor is not CPU-resident or not f64.