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

Method gpu_coverage

tools/profile/analyze_torch_trace_gap.py:69–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67
68 @property
69 def gpu_coverage(self) -> float:
70 if self.wall_us <= 0:
71 return 0.0
72 return min(1.0, self.gpu_active_us / self.wall_us)
73
74 def gap_budget_us(self, gap_per_event_us: float) -> float:
75 return self.gpu_event_count * gap_per_event_us

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected