MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / text_classification_assert

Function text_classification_assert

tests/unit/inference/test_inference.py:205–206  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

203
204
205def text_classification_assert(x, y):
206 return set(res["label"] for res in x) == set(res["label"] for res in y)
207
208
209def token_classification_assert(x, y):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected