[][src]Function onednn_sys::dnnl_eltwise_forward_desc_init

pub unsafe extern "C" fn dnnl_eltwise_forward_desc_init(
    eltwise_desc: *mut dnnl_eltwise_desc_t,
    prop_kind: dnnl_prop_kind_t,
    alg_kind: dnnl_alg_kind_t,
    data_desc: *const dnnl_memory_desc_t,
    alpha: f32,
    beta: f32
) -> dnnl_status_t

Initializes a descriptor for eltwise forward propagation primitive.

@param eltwise_desc Output descriptor for an eltwise primitive. @param prop_kind Propagation kind. Possible values are #dnnl_forward_training and #dnnl_forward_inference. @param alg_kind Elementwise algorithm kind. @param data_desc Source and destination memory descriptor. @param alpha The alpha parameter for the elementwise operation. Specific meaning depends on the algorithm. @param beta The beta parameter for the elementwise operation. Specific meaning depends on the algorithm. @returns #dnnl_success on success and a status describing the error otherwise.