Unverified Commit f3a683b7 authored by Mengqing Cao's avatar Mengqing Cao Committed by GitHub
Browse files

[Bugfix][Logprobs] Fix logprobs op to support more backend (#21591)


Signed-off-by: default avatarMengqingCao <cmq0113@163.com>
parent 46d81d69
...@@ -4,8 +4,10 @@ ...@@ -4,8 +4,10 @@
import torch import torch
from vllm.platforms import current_platform
@torch.compile(dynamic=True)
@torch.compile(dynamic=True, backend=current_platform.simple_compile_backend)
def batched_count_greater_than(x: torch.Tensor, def batched_count_greater_than(x: torch.Tensor,
values: torch.Tensor) -> torch.Tensor: values: torch.Tensor) -> torch.Tensor:
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment