AssetStore
-
class fairseq2.assets.AssetStore[source]
Bases: ABC
Represents a store of assets.
-
abstract retrieve_card(name, *, envs=None, scope='all')[source]
Retrieve the card of the specified asset.
- Parameters:
name (str) – The name of the asset.
scope (Literal['all', 'global', 'user']) – The scope of retrieval.
- Para env:
The environments, in order of precedence, in which to retrieve the
card. If None
, the available environments will be resolved
automatically.
- Return type:
AssetCard
-
abstract retrieve_names(*, scope='all')[source]
Retrieve the names of the assets contained in this store.
- Parameters:
scope (Literal['all', 'global', 'user']) – The scope of retrieval.
- Return type:
List[str]