[−][src]Function onednn_sys::dnnl_memory_set_data_handle
pub unsafe extern "C" fn dnnl_memory_set_data_handle(
memory: dnnl_memory_t,
handle: *mut c_void
) -> dnnl_status_t
Sets the underlying memory buffer.
See the description of dnnl_memory_set_data_handle_v2() for more details.
@param memory Memory object.
@param handle Data handle. For the CPU engine, the data handle is a
pointer to the actual data. For OpenCL it is a cl_mem
.
@returns #dnnl_success on success and a status describing the error
otherwise.