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

Method prepare

src/fused_mm_sampling/core.py:656–657  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

654def alloc_on_cuda(size: int, alignment: int, stream: int | None):
655 return torch.empty(size, device="cuda", dtype=torch.int8)
656
657
658class Sampler(Protocol):
659 def prepare(self) -> "Sampler":
660 raise NotImplementedError()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected