pub unsafe fn from_raw_parts_mut<'a, H, M>(
tensor: *mut Tensor,
) -> &'a mut TensorRef<H, M>where
H: HalideType,
M: TensorMachine,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