MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / cdiv

Function cdiv

src/fused_mm_sampling/core.py:206–207  ·  view source on GitHub ↗
(n: int, div: int)

Source from the content-addressed store, hash-verified

204 replace_mask = new_max > gumbel_max
205 gumbel_max = torch.where(replace_mask, new_max, gumbel_max)
206 gumbel_max_idx = torch.where(replace_mask, new_max_idx_global, gumbel_max_idx)
207 return gumbel_max_idx.T
208
209
210def cdiv(n: int, div: int) -> int:

Callers 1

sequential_sample_ptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected