Skip to main content

from_raw_parts_mut

Function from_raw_parts_mut 

Source
pub unsafe fn from_raw_parts_mut<'a, H, M>(
    tensor: *mut Tensor,
) -> &'a mut TensorRef<H, M>
Expand description

Construct a mutable tensor reference from a raw pointer to an MNN tensor

ยงSafety

The caller must ensure that the provided pointer is valid and points to a properly initialized