MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / _tensor_bytes

Function _tensor_bytes

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

Source from the content-addressed store, hash-verified

54
55
56def _tensor_bytes(tensor):
57 return tensor.numel() * tensor.element_size()
58
59
60class PipelineEngine(DeepSpeedEngine):

Callers

nothing calls this directly

Calls 1

numelMethod · 0.45

Tested by

no test coverage detected