torchoutil.hub.paths module

get_cache_dir(
mkdir: bool = False,
make_parents: bool = True,
) Path[source]

Returns torchoutil cache directory for storing checkpoints, data and models.

Defaults is ~/.cache/torchoutil. Can be overriden with ‘TORCHOUTIL_CACHEDIR’ environment variable.

get_tmp_dir(
mkdir: bool = False,
make_parents: bool = True,
) Path[source]

Returns torchoutil temporary directory.

Defaults is /tmp/torchoutil. Can be overriden with ‘TORCHOUTIL_TMPDIR’ environment variable.