Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
56
def
_tensor_bytes(tensor):
57
return
tensor.numel() * tensor.element_size()
58
59
60
class
PipelineEngine(DeepSpeedEngine):
Callers
nothing calls this directly
Calls
1
numel
Method · 0.45
Tested by
no test coverage detected