[][src]Function onednn_sys::dnnl_resampling_forward_desc_init

pub unsafe extern "C" fn dnnl_resampling_forward_desc_init(
    resampling_desc: *mut dnnl_resampling_desc_t,
    prop_kind: dnnl_prop_kind_t,
    alg_kind: dnnl_alg_kind_t,
    factors: *const f32,
    src_desc: *const dnnl_memory_desc_t,
    dst_desc: *const dnnl_memory_desc_t
) -> dnnl_status_t

Initializes a descriptor for a resampling forward propagation primitive.

@note Destination memory descriptor is allowed to be initialized with #dnnl_format_tag_any or with format_kind set to #dnnl_format_kind_any.

@param resampling_desc Output descriptor for a resampling primitive. @param prop_kind Propagation kind. Possible values are #dnnl_forward_training and #dnnl_forward_inference. @param alg_kind resampling algorithm kind: either #dnnl_resampling_nearest, or #dnnl_resampling_linear. @param factors Array of scaling factors for spatial dimension. @param src_desc Source memory descriptor. @param dst_desc Destination memory descriptor. @returns #dnnl_success on success and a status describing the error otherwise.