MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / _tensor_bytes

Function _tensor_bytes

deepspeed/runtime/pipe/engine.py:38–39  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

36
37
38def _tensor_bytes(tensor):
39 return tensor.numel() * tensor.element_size()
40
41
42class PipelineEngine(DeepSpeedEngine):

Callers 1

_send_tensor_metaMethod · 0.85

Calls 1

numelMethod · 0.80

Tested by

no test coverage detected