Buckets:

download
raw
373 Bytes
from typing import Callable
from torch.utils.benchmark import Timer
def run_benchmark(func: Callable, num_iters: int = 100):
# Time the model
timer = Timer(stmt="func()", globals={"func": func})
result = timer.timeit(number=num_iters)
# Get the average time per iteration in milliseconds
avg_time = result.mean * 1000
return round(avg_time, 2)

Xet Storage Details

Size:
373 Bytes
·
Xet hash:
1ad1b7ddce054bd080808a6dbb26fee5397fb793e07bbc0a0eeb06bf67ef042d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.