class documentation
class ArchSupport: (source)
Constructor: ArchSupport.from_architecture(arch, before)
An entry in an ArchRegistry
that describes how to detect and load a model architecture.
Static Method | from |
Creates an ArchSupport from an Architecture by using the architecture's detect method. |
Class Variable | architecture |
The architecture. |
Class Variable | before |
This architecture is detected before the architectures with the given IDs. |
Class Variable | detect |
Inspects the given state dict and returns True if this architecture is detected. |
@staticmethod
def from_architecture(arch:
def from_architecture(arch:
Architecture[ torch.nn.Module]
, before: tuple[ ArchId, ...]
= ()) -> ArchSupport
:
(source)
¶
Creates an ArchSupport
from an Architecture
by using the architecture's detect method.
This architecture is detected before the architectures with the given IDs.
See the documentation of ArchRegistry
for more information on ordering.