# tensorplay.hub

Source: https://www.tensorplay.cn/docs/hub.html

# tensorplay.hub

## Loading models from Hub

[tensorplay.hub.load](generated/tensorplay.hub.load.html#tensorplay.hub.load)

Unified model loader.

[tensorplay.hub.download_url_to_file](generated/tensorplay.hub.download_url_to_file.html#tensorplay.hub.download_url_to_file)

Download a URL to a local file(Safe download: temp file + hash check + progress feedback).

[tensorplay.hub.load_state_dict_from_url](generated/tensorplay.hub.load_state_dict_from_url.html#tensorplay.hub.load_state_dict_from_url)

Downloads a raw checkpoint URL and loads it (torch semantics).

### Where are my downloaded models saved?

[tensorplay.hub.get_dir](generated/tensorplay.hub.get_dir.html#tensorplay.hub.get_dir)

Get the TensorPlay Hub cache directory used for storing downloaded models & weights.

[tensorplay.hub.set_dir](generated/tensorplay.hub.set_dir.html#tensorplay.hub.set_dir)

Optionally set the TensorPlay Hub directory used to save downloaded models & weights.
