Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
38
def
_tensor_bytes(tensor):
39
return
tensor.numel() * tensor.element_size()
40
41
42
class
PipelineEngine(DeepSpeedEngine):
Callers
1
_send_tensor_meta
Method · 0.85
Calls
1
numel
Method · 0.80
Tested by
no test coverage detected