[][src]Function onednn_sys::dnnl_primitive_desc_create

pub unsafe extern "C" fn dnnl_primitive_desc_create(
    primitive_desc: *mut dnnl_primitive_desc_t,
    op_desc: const_dnnl_op_desc_t,
    attr: const_dnnl_primitive_attr_t,
    engine: dnnl_engine_t,
    hint_forward_primitive_desc: const_dnnl_primitive_desc_t
) -> dnnl_status_t

Creates a primitive descriptor. This function is equivalent to a sequence of #dnnl_primitive_desc_iterator_create() and #dnnl_primitive_desc_iterator_fetch(). In other words, the library will pick the first suitable implementation.

@param primitive_desc Output primitive descriptor. @param op_desc Operation descriptor. @param attr Primitive attributes (can be NULL). @param engine Engine to use. @param hint_forward_primitive_desc For backward propagation: primitive descriptor for a respective forward propagation primitive. Pass NULL for forward propagation. @returns #dnnl_success on success and a status describing the error otherwise.