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

Method __call__

detrsmpl/data/datasets/pipelines/formatting.py:40–43  ·  view source on GitHub ↗
(self, results)

Source from the content-addressed store, hash-verified

38 self.keys = keys
39
40 def __call__(self, results):
41 for key in self.keys:
42 results[key] = to_tensor(results[key])
43 return results
44
45 def __repr__(self):
46 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