MCPcopy Create free account
hub / github.com/apple/axlearn / set

Method set

axlearn/common/layers.py:110–116  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

108 def set(self, **kwargs) -> "RedirectToSharedModule.Config":
109 try:
110 super().set(**kwargs)
111 except UnknownFieldError as e:
112 logging.info("Ignoring %s", e)
113 # We intentionally ignore this exception.
114 return self
115
116 def _methods_to_wrap_for_auto_child_context(self) -> dict[str, Callable]:
117 cfg: RedirectToSharedModule.Config = self.config
118 method_dict = {}
119 for source_method, target_method in (cfg.method_map or {"forward": "forward"}).items():

Callers 5

default_configMethod · 0.45
__init__Method · 0.45
enter_fnFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected