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

Method __init__

axlearn/common/layers.py:1187–1190  ·  view source on GitHub ↗
(self, cfg: Config, *, parent: Module)

Source from the content-addressed store, hash-verified

1185 super().__init__(cfg, parent=parent)
1186 cfg = self.config
1187 self._add_child("metric", cfg.metric.set(num_classes=cfg.num_classes))
1188
1189 def forward(self, input_batch: NestedTensor) -> Tensor:
1190 """Produces predictions for the given inputs.
1191
1192 Args:
1193 input_batch: A dict with the following entries:

Callers

nothing calls this directly

Calls 3

_add_childMethod · 0.80
__init__Method · 0.45
setMethod · 0.45

Tested by

no test coverage detected