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

Method score

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

Source from the content-addressed store, hash-verified

175 return self.linear(x)
176
177 def score(self, input_batch: NestedTensor) -> Tensor:
178 y = self.predict(input_batch)
179 return y.sum(axis=-1)
180
181 def predict_batch(self, input_batch: NestedTensor) -> NestedTensor:
182 x = input_batch["x"]

Callers

nothing calls this directly

Calls 1

predictMethod · 0.95

Tested by

no test coverage detected