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 str 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
Example
import paddle paddle.hub.list('lyuwenyu/paddlehub_demo:main', source='github', force_reload=False)