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

    System Message: ERROR/3 (/usr/local/lib/python3.8/site-packages/paddle/hapi/hub.py:docstring of paddle.hapi.hub.list, line 5)

    Unexpected indentation.

    tag/branch. The default branch is main if not specified.

    System Message: WARNING/2 (/usr/local/lib/python3.8/site-packages/paddle/hapi/hub.py:docstring of paddle.hapi.hub.list, line 6)

    Block quote ends without a blank line; unexpected unindent.

    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

```python import paddle

System Message: WARNING/2 (/usr/local/lib/python3.8/site-packages/paddle/hapi/hub.py:docstring of paddle.hapi.hub.list, line 18); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (/usr/local/lib/python3.8/site-packages/paddle/hapi/hub.py:docstring of paddle.hapi.hub.list, line 18); backlink

Inline interpreted text or phrase reference start-string without end-string.

paddle.hub.list(‘lyuwenyu/paddlehub_demo:main’, source=’github’, force_reload=False)

```

System Message: WARNING/2 (/usr/local/lib/python3.8/site-packages/paddle/hapi/hub.py:docstring of paddle.hapi.hub.list, line 23); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (/usr/local/lib/python3.8/site-packages/paddle/hapi/hub.py:docstring of paddle.hapi.hub.list, line 23); backlink

Inline interpreted text or phrase reference start-string without end-string.