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

Method as_dict

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

Source from the content-addressed store, hash-verified

14class BatchBase(Pipelineable, abc.ABC):
15 @abc.abstractmethod
16 def as_dict(self) -> Dict:
17 raise NotImplementedError
18
19 def to(self, device: torch.device, non_blocking: bool = False):
20 args = {}

Callers 6

toMethod · 0.95
record_streamMethod · 0.95
pin_memoryMethod · 0.95
__repr__Method · 0.95
batch_sizeMethod · 0.95
__post_init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected