phenotypic.abc_.WeightRequirement#
- class phenotypic.abc_.WeightRequirement(model: str, license_key: str | None, is_cached: Callable[[], bool | None])[source]#
Bases:
objectModel weights an operation loads at run time.
- license_key#
The
PHENOTYPIC_ACCEPT_MODEL_LICENSEtoken that must be accepted before the weights may be downloaded or used, orNonewhen the weights are not gated.- Type:
str | None
- is_cached#
Reports whether the weights are already on local disk, without importing
torchand without network access. ReturnsNonewhen that cannot be told.- Type:
Callable[[], bool | None]
Methods
__init__Attributes