def METHOD_NAME(model, inp, iters=500, warmup=2):
    start = time.time()
    for i in range(iters):
        out = model(inp)
        torch.cuda.synchronize()
        if i <= warmup:
            start = time.time()
    latency = (time.time() - start) / (iters - warmup)
    return out, latency