[][src]Function onednn_sys::dnnl_primitive_get_primitive_desc

pub unsafe extern "C" fn dnnl_primitive_get_primitive_desc(
    primitive: const_dnnl_primitive_t,
    primitive_desc: *mut const_dnnl_primitive_desc_t
) -> dnnl_status_t

Retrieves a constant reference to the primitive descriptor of a given primitive.

@warning It is an error to destroy the returned object. It is owned by the primitive. The @c const qualifier of the returned object prevents such attempts.

@param primitive Primitive to query for the primitive descriptor. @param primitive_desc Output primitive descriptor. @returns #dnnl_success on success and a status describing the error otherwise.