The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Definition

Helper functions

zip

    Perl version of for x,y,z in zip (arr_x, arr_y, arr_z)

    Parameters
    ----------
    $sub_ref, called with @_ filled with 
    $arr_x->[$i], $arr_y->[$i], $arr_z->[$i]
    for each loop iteration.

    @array_refs

enumerate

    Same as zip, but argument list in anonymous sub is prepended
    by iteration count

assert

    Parameters
    -----------
    Bool $input
    Str  $error_str
    Calls Carp::confess with $error_str//"AssertionError" if $input is false

check_call

    Check the return value of C API call

    This function will raise exception when error occurs.
    Wrap every API call with this function

    returns C API call return values stripped of first return value,
    checks for return context and returns first element in
    the values list when called in scalar context. 

build_param_doc

    Build argument docs in python style.

    arg_names : list of str
        Argument names.

    arg_types : list of str
        Argument type information.

    arg_descs : list of str
        Argument description information.

    remove_dup : boolean, optional
        Whether remove duplication or not.

    Returns
    -------
    docstr : str
        Python docstring of parameter sections.

_notify_shutdown

    Notify MXNet about a shutdown.