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)
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)