triton.testing.do_bench_cudagraph¶
- triton.testing.do_bench_cudagraph(fn, rep=20, grad_to_none=None, quantiles=None, return_mode='mean')¶
对提供的函数进行运行时基准测试。
- Parameters:
fn (Callable) – 要进行基准测试的函数
rep (int) – 重复时间(单位为毫秒)
grad_to_none (torch.tensor, optional) - 将提供的张量的梯度重置为None
return_mode (str) – 要返回的统计度量。可选值为"min"、"max"、"mean"、"median"或"all"。默认为"mean"。