list¶
- paddle.hub. list ( repo_dir, source='github', force_reload=False ) [source]
-
List all entrypoints available in github hubconf.
- Parameters
-
repo_dir (str) –
Github or local path.
github path (str): A string with format “repo_owner/repo_name[:tag_name]” with an optional tag/branch. The default branch is main if not specified.
local path (str): Local repo path.
source (str) – github | gitee | local. Default is github.
force_reload (bool, optional) – Whether to discard the existing cache and force a fresh download. Default is False.
- Returns
-
A list of available entrypoint names.
- Return type
-
entrypoints
Examples
>>> import paddle >>> paddle.hub.list('lyuwenyu/paddlehub_demo:main', source='github', force_reload=False)