[][src]Function onednn_sys::dnnl_memory_desc_init_by_tag

pub unsafe extern "C" fn dnnl_memory_desc_init_by_tag(
    memory_desc: *mut dnnl_memory_desc_t,
    ndims: c_int,
    dims: *mut dnnl_dim_t,
    data_type: dnnl_data_type_t,
    tag: dnnl_format_tag_t
) -> dnnl_status_t

Initializes a memory descriptor using dimensions and memory format tag.

@note As always, the logical order of dimensions corresponds to the abc... format tag, and the physical meaning of the dimensions depends on both the primitive that consumes the memory and the context of that consumption.

@param memory_desc Output memory descriptor. @param ndims Number of dimensions @param dims Array of dimensions. @param data_type Elements data type. @param tag Memory format tag. Can be #dnnl_format_tag_any which would allow a primitive to chose the final memory format. In this case the format_kind field of the memory descriptor would be set to #dnnl_format_kind_any. @returns #dnnl_success on success and a status describing the error otherwise.