MCPcopy Create free account
hub / github.com/FLC777/GLAT / __init__

Method __init__

fairseq/distributed/module_proxy_wrapper.py:27–31  ·  view source on GitHub ↗
(self, module: nn.Module)

Source from the content-addressed store, hash-verified

25 """
26
27 def __init__(self, module: nn.Module):
28 super().__init__()
29 assert hasattr(module, "module"), \
30 "ModuleProxyWrapper expects input to wrap another module"
31 self.module = module
32
33 def __getattr__(self, name):
34 """Forward missing attributes to twice-wrapped module."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected