torch_hub_load_github#

torch_hub_load_github(repo: str, hubconf_dir: str, entrypoint: str, *args, **kwargs) Any[source]#

Load an entrypoint from a github repo using torch.hub.load().

Parameters
  • repo (str) – <repo-owner>/<erpo-name>[:tag]

  • hubconf_dir (str) – Where the contents from the uri will finally be saved to.

  • entrypoint (str) – Name of a callable present in hubconf.py.

  • *args – Args to be passed to the entrypoint.

  • **kwargs – Keyword args to be passed to the entrypoint.

Returns

The output from calling the entrypoint.

Return type

Any