[][src]Function onednn_sys::dnnl_primitive_attr_get_post_ops

pub unsafe extern "C" fn dnnl_primitive_attr_get_post_ops(
    attr: const_dnnl_primitive_attr_t,
    post_ops: *mut const_dnnl_post_ops_t
) -> dnnl_status_t

Returns primitive attributes post-ops.

@warning The output @p post_ops points to the internal @p attr field, so it is an error to modify or destroy them. The lifetime of @p post_ops is the same as that of the @p attr it belongs to, so it is an error to use @p post_ops after @p attr has been destroyed.

@param attr Primitive attributes. @param post_ops Output post-ops. @returns #dnnl_success on success and a status describing the error otherwise.