neuralib.persistence.cli_persistence.get_options_and_cache
- neuralib.persistence.cli_persistence.get_options_and_cache(opt_cls, ref, error_when_missing=False, invalid_cache=False, **kwargs)[source]
copy the arguments from
PersistenceOptions(class that compute the cache) toApplyOptionsCan be used for analysis apply two different cached files- Parameters:
opt_cls (type[PersistenceOptions[T]]) –
PersistenceOptionsref – reference class for applying the cache
error_when_missing (bool) – do not try to generate the cache when cache missing
invalid_cache (bool) – invalid_cache pass to
PersistenceOptions
- Returns:
- Return type:
T