MCPcopy Index your code
hub / github.com/twitter/the-algorithm-ml / __repr__

Method __repr__

common/batch.py:35–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 return self.__class__(**args)
34
35 def __repr__(self) -> str:
36 def obj2str(v):
37 return f"{v.size()}" if hasattr(v, "size") else f"{v.length_per_key()}"
38
39 return "\n".join([f"{k}: {obj2str(v)}," for k, v in self.as_dict().items()])
40
41 @property
42 def batch_size(self) -> int:

Callers

nothing calls this directly

Calls 1

as_dictMethod · 0.95

Tested by

no test coverage detected