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

Method forward

axlearn/common/inference_test.py:165–167  ·  view source on GitHub ↗
(self, input_batch: NestedTensor)

Source from the content-addressed store, hash-verified

163 self.predict_dtypes = []
164
165 def forward(self, input_batch: NestedTensor) -> tuple[Tensor, NestedTensor]:
166 y = self.predict(input_batch)
167 return y.mean(), {}
168
169 def predict(self, input_batch: NestedTensor) -> Tensor:
170 x = input_batch["x"]

Callers

nothing calls this directly

Calls 1

predictMethod · 0.95

Tested by

no test coverage detected