MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / calculate_memory

Function calculate_memory

lightx2v_kernel/python/lightx2v_kernel/utils.py:108–110  ·  view source on GitHub ↗

Calculate memory usage in bytes for a tensor.

(tensor: torch.Tensor)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

benchmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected