Fix benchmark import for should_use_tensor_core (#17232)

This commit is contained in:
Mohammad Miadh Angkad
2026-01-17 06:48:36 +08:00
committed by GitHub
parent 4229de3b13
commit b0701f02b3

View File

@@ -6,8 +6,8 @@ import torch
import torch.utils.benchmark as benchmark
from flashinfer import BatchDecodeWithPagedKVCacheWrapper
from sglang.srt.layers.attention.flashinfer_backend import should_use_tensor_core
from sglang.srt.layers.attention.triton_ops.decode_attention import decode_attention_fwd
from sglang.srt.utils import should_use_tensor_core
def benchmark_forward(