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

Method sync_wrapper

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

Source from the content-addressed store, hash-verified

124 torch_device_module.reset_peak_memory_stats()
125 except (RuntimeError, NotImplementedError):
126 pass
127 finally:
128 if stack and stack[-1] is self:
129 stack.pop()
130 elif self in stack:
131 stack.remove(self)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected