[][src]Function onednn_sys::dnnl_post_ops_get_params_eltwise

pub unsafe extern "C" fn dnnl_post_ops_get_params_eltwise(
    post_ops: const_dnnl_post_ops_t,
    index: c_int,
    scale: *mut f32,
    alg_kind: *mut dnnl_alg_kind_t,
    alpha: *mut f32,
    beta: *mut f32
) -> dnnl_status_t

Returns the parameters of an elementwise post-up.

@param post_ops Post-ops. @param index Index of the elementwise post-op. @param scale Output scaling factor. @param alg_kind Output elementwise algorithm kind. @param alpha Output alpha parameter for the elementwise algorithm. @param beta Output beta parameter for the elementwise algorithm. @returns #dnnl_success on success and a status describing the error otherwise. @returns #dnnl_invalid_arguments if @p index does not refer to an elementwise post-op.