pub unsafe extern "C" fn nn_tensor_mapro(
    tensor: *mut NNTensor
) -> *const c_void
Expand description

Maps the tensor’s memory and returns the client accessible pointer. This is the read-only version which causes the engine to download buffers to the CPU memory space if required but will not flush back to the device on unmap.

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

@public @memberof NNTensor @since 2.0