support cmake for sgl-kernel (#4706)

Co-authored-by: hebiao064 <hebiaobuaa@gmail.com>
Co-authored-by: yinfan98 <1106310035@qq.com>
This commit is contained in:
authored and GitHub committed 2025-03-27 01:42:28 -07:00
1 parent 1b9175cb23
commit 8bf6d7f406
18 files changed
+426 -36

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ def _top_k_renorm_probs_internal(
probs = probs.float()
maybe_top_k_arr = maybe_top_k_arr.int() if maybe_top_k_arr is not None else None
renorm_probs = torch.empty_like(probs)
torch.ops.sgl_kernel.top_k_renorm_probs_wrapper(
torch.ops.sgl_kernel.top_k_renorm_probs(
probs,
renorm_probs,
maybe_top_k_arr,