fairseq2.assets¶
classDiagram ABC <|-- AssetDownloadManager ABC <|-- AssetMetadataProvider ABC <|-- AssetStore AbstractAssetMetadataProvider <|-- FileAssetMetadataProvider AbstractAssetMetadataProvider <|-- PackageAssetMetadataProvider AssetCardError <|-- AssetCardFieldNotFoundError AssetCardError <|-- AssetCardNotFoundError AssetDownloadManager <|-- InProcAssetDownloadManager AssetError <|-- AssetCardError AssetMetadataError <|-- AssetMetadataNotFoundError AssetMetadataProvider <|-- AbstractAssetMetadataProvider AssetMetadataProvider <|-- InProcAssetMetadataProvider AssetStore <|-- StandardAssetStore BaseException <|-- Exception Exception <|-- AssetDownloadError Exception <|-- AssetError Exception <|-- AssetMetadataError Generic <|-- Protocol Protocol <|-- EnvironmentResolver
Classes¶
- class fairseq2.assets.AssetStore[source]¶
Bases:
ABC
Represents a store of assets.
- class fairseq2.assets.AssetMetadataProvider[source]¶
Bases:
ABC
Provides asset metadata.
- final class fairseq2.assets.AssetCard(name, metadata, base_card=None, base_path=None)[source]¶
Bases:
object
Holds information about an asset.
- Parameters:
- field(name)[source]¶
Return a field of this card.
If the card does not contain the specified field, its base cards will be checked recursively.
- Parameters:
name (str) – The name of the field.
- Return type:
AssetCardField