xnn.common.models.hub.registry.register_pretrained#
- xnn.common.models.hub.registry.register_pretrained(card=None, **fields)[source]#
Add a model to the registry (for this process).
- Parameters:
- Returns:
The registered card.
- Return type:
- Raises:
ValueError – If the name is not a safe cache key (letters, digits,
._-, with/between parts).