[−][src]Function onednn_sys::dnnl_primitive_desc_get_attr
pub unsafe extern "C" fn dnnl_primitive_desc_get_attr(
primitive_desc: const_dnnl_primitive_desc_t,
attr: *mut const_dnnl_primitive_attr_t
) -> dnnl_status_t
Returns a constant reference to the attributes of a primitive descriptor.
@warning It is an error to destroy the resulting @p attr.
@warning The lifetime of an @p attr is the same as that of a @p primitive_desc, so it is an error to use the @p attr once the @p primitive_desc has been destroyed.
@param primitive_desc Primitive descriptor. @param attr Output primitive attributes. @returns #dnnl_success on success and a status describing the error otherwise.