예제 #1
0
def get_variables_path(export_dir):
    """Return the variables path, used as the prefix for checkpoint files."""
    return file_io.join(compat.as_text(get_variables_dir(export_dir)),
                        compat.as_text(constants.VARIABLES_FILENAME))
예제 #2
0
def get_assets_dir(export_dir):
    """Return path to asset directory in the SavedModel."""
    return file_io.join(compat.as_text(export_dir),
                        compat.as_text(constants.ASSETS_DIRECTORY))
예제 #3
0
def get_variables_dir(export_dir):
    """Return variables sub-directory in the SavedModel."""
    return file_io.join(compat.as_text(export_dir),
                        compat.as_text(constants.VARIABLES_DIRECTORY))