Function nn_tensor_mapwo

Source
pub unsafe extern "C" fn nn_tensor_mapwo(
    tensor: *mut NNTensor,
) -> *mut c_void
Expand description

Maps the tensor’s memory and returns the client accessible pointer. This is the write-only version which will not cause a download of the buffers to the CPU memory space on map but will upload to the device on unmap.

If the tensor is already mapped write-only or read-write a pointer is returned and the reference count increased. If it was previously mapped as read-only NULL is returned.

@public @memberof NNTensor @since 2.0