示例#1
0
def save_model(root_op, filename):
    '''
    Save the network of `root_op` in `model_file`.

    Args:
        root_op (`:class:cntk.functions.Function`): op of the graph to save
        filename (`str`): filename to store the model in
    '''
    cntk_py.save_as_legacy_model(root_op, filename)
示例#2
0
文件: persist.py 项目: hahatt/CNTK
def save_model(root_op, filename):
    '''
    Save the network of `root_op` in `model_file`.

    Args:
        root_op (`:class:cntk.functions.Function`): op of the graph to save
        filename (`str`): filename to store the model in
    '''
    cntk_py.save_as_legacy_model(root_op, filename)
示例#3
0
def save_as_legacy_model(root_op, filename):
    '''
    Save the network of ``root_op`` in ``filename``.
    For debugging purposes only, very likely to be deprecated in the future.

    Args:
        root_op (:class:`~cntk.ops.functions.Function`): op of the graph to save
        filename (str): filename to store the model in.
    '''
    cntk_py.save_as_legacy_model(root_op, filename)
示例#4
0
def save_as_legacy_model(root_op, filename):
    '''
    Save the network of ``root_op`` in ``filename``.
    For debugging purposes only, very likely to be deprecated in the future.

    Args:
        root_op (:class:`~cntk.ops.functions.Function`): op of the graph to save
        filename (str): filename to store the model in.
    '''
    cntk_py.save_as_legacy_model(root_op, filename)