MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / __call__

Method __call__

util/formatting.py:37–40  ·  view source on GitHub ↗
(self, results)

Source from the content-addressed store, hash-verified

35 self.keys = keys
36
37 def __call__(self, results):
38 for key in self.keys:
39 results[key] = to_tensor(results[key])
40 return results
41
42 def __repr__(self):
43 return self.__class__.__name__ + f'(keys={self.keys})'

Callers

nothing calls this directly

Calls 1

to_tensorFunction · 0.70

Tested by

no test coverage detected