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

Method record_stream

common/batch.py:25–27  ·  view source on GitHub ↗
(self, stream: torch.cuda.streams.Stream)

Source from the content-addressed store, hash-verified

23 return self.__class__(**args)
24
25 def record_stream(self, stream: torch.cuda.streams.Stream) -> None:
26 for feature_value in self.as_dict().values():
27 feature_value.record_stream(stream)
28
29 def pin_memory(self):
30 args = {}

Callers 2

_wait_for_batchFunction · 0.80
__call__Method · 0.80

Calls 1

as_dictMethod · 0.95

Tested by

no test coverage detected