qat.model.loaders.cache module

class CacheAccessLoader(cache, name)

Bases: BaseModelLoader

A loader that loads a hardware model from a cache of hardware models.

While primarily used for qatconfig, this loader can be applied to any cache that can be indexed by a hardware model name.

Parameters:
  • cache – An object that can be indexed by a hardware model name, such as a dict.

  • name (str) – The name of the hardware model to load from the cache.

load()

Loads a hardware model from the cache.

Return type:

BaseModelLoader