Пример #1
0
def generate_function_cpp_interface(function_info):
    function_list = utils.info_to_list(function_info)
    utils.generate_from_template(join(base, 'include/nbla/functions.hpp.tmpl'),
                                 function_info=function_info,
                                 function_list=function_list)
    utils.generate_from_template(join(base, 'src/nbla/functions.cpp.tmpl'),
                                 function_info=function_info,
                                 function_list=function_list)
Пример #2
0
def generate_function_python_interface(function_info):
    utils.generate_from_template(
        join(base, 'python/src/nnabla/function.pyx.tmpl'), function_info=function_info)
    utils.generate_from_template(
        join(base, 'python/src/nnabla/function.pxd.tmpl'), function_info=function_info)
    utils.generate_from_template(
        join(base, 'python/src/nnabla/function_bases.py.tmpl'), function_info=function_info)
Пример #3
0
def generate_proto(function_info, solver_info):
    utils.generate_from_template(join(base,
                                      'src/nbla/proto/nnabla.proto.tmpl'),
                                 function_info=function_info,
                                 solver_info=solver_info)
Пример #4
0
def generate_cpp_utils(function_info):
    function_list = utils.info_to_list(function_info)
    utils.generate_from_template(join(
        base, 'src/nbla_utils/nnp_impl_create_function.cpp.tmpl'),
                                 function_info=function_info,
                                 function_list=function_list)
Пример #5
0
def generate_backward_function_mapping(function_info):
    function_list = utils.info_to_list(function_info)
    utils.generate_from_template(join(
        base, 'python/src/nnabla/backward_functions.py.tmpl'),
                                 function_info=function_info,
                                 function_list=function_list)