megengine.hub.help¶
- help(repo_info, entry, git_host=DEFAULT_GIT_HOST, use_cache=True, commit=None, protocol=DEFAULT_PROTOCOL)[源代码]¶
通过以下步骤,该函数返回入口点
entry的docstring :拉取下来git和repo_info指定的仓库代码。
加载仓库中hubconf.py所定义的条目
返回函数入口的docstring(文档字符串)。
- 参数
repo_info (
str) – a string with format"repo_owner/repo_name[:tag_name/:branch_name]"with an optional tag/branch. The default branch ismasterif not specified. Eg:"brain_sdk/MegBrain[:hub]"entry (
str) – 一个在hubconf.py中定义的入口点git_host (
str) – host address of git repo. Eg: github.comuse_cache (
bool) – 选择使用本地缓存的代码或完全重新拉取代码。protocol (
str) – 获得代码仓库所使用的协议,其中,HTTPS协议只支持github公共仓库。该参数值可为HTTPS 或 SSH。
- 返回类型
- 返回
入口点
entry的文档字符串。