xnn.common.models.hub.cache.default_model_cache_dir#
- xnn.common.models.hub.cache.default_model_cache_dir()[source]#
Return the directory models are cached in when no
cache_diris given.The
XNN_MODELSenvironment variable wins, thenXNN_CACHE(models go to itsmodels/subfolder, beside the datasets), then the repository’smodels/directory in a source checkout, mirroringdatasets/. An installed package falls back to~/.cache/xnn/models.- Returns:
The cache directory (not created here).
- Return type: