MCPcopy
hub / github.com/appvision-ai/fast-bert / to_list

Function to_list

fast_bert/learner_qa.py:795–796  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

793 return probs
794
795def to_list(tensor):
796 return tensor.detach().cpu().tolist()

Callers 1

validateMethod · 0.85

Calls 1

detachMethod · 0.45

Tested by

no test coverage detected