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

Method __init__

lightx2v/utils/profiler.py:135–136  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

133
134 peak_allocated = self.peak_memory_allocated
135 peak_reserved = self.peak_memory_reserved
136 start_allocated = self.start_memory_allocated
137 peak_delta = max(peak_allocated - start_allocated, 0)
138 gib = 1024**3
139 memory_suffix = f", start_allocated {start_allocated / gib:.3f} GiB, peak_allocated {peak_allocated / gib:.3f} GiB, peak_delta {peak_delta / gib:.3f} GiB"

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected