MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / get_from_cache

Function get_from_cache

fairseq/file_utils.py:230–300  ·  view source on GitHub ↗

Given a URL, look for the corresponding dataset in the local cache. If it's not there, download it. Then return the path to the cached file.

(url, cache_dir=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

cached_pathFunction · 0.85

Calls 7

s3_etagFunction · 0.85
url_to_filenameFunction · 0.85
s3_getFunction · 0.85
http_getFunction · 0.85
seekMethod · 0.80
existsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected