loadable¶
loadable
¶
LoadableMixin
¶
Bases: NNsight
Mixin that adds model loading from an identifier (e.g. a repo ID or path).
Extends :class:NNsight so the first argument can be either a
torch.nn.Module (wrapped directly) or an identifier that is
resolved by :meth:_load.
Subclasses must implement :meth:_load to define how an identifier
is converted into a torch.nn.Module.
| PARAMETER | DESCRIPTION |
|---|---|
*args
|
If the first argument is a
DEFAULT:
|
rename
|
Module path aliases.
See :class:
TYPE:
|
**kwargs
|
Forwarded to :meth:
DEFAULT:
|