def map_string2func(funcname, clss):
    """
    Helper function that converts string function names to function calls
    """
    if funcname == "fprop_roipooling":
        return _get_fprop_roipooling(clss)
    if funcname == "bprop_roipooling":
        return _get_bprop_roipooling(clss)
    raise AttributeError("kernel type '" + funcname % "' not understood")


# This section of the code contains templated CUDA-C code for the kernels.
dataset/ETHPy150Open NervanaSystems/neon/neon/backends/kernels/cuda/roipooling.py/map_string2func/operator `+` -> `%`