(name: str)
| 27 | |
| 28 | @contextmanager |
| 29 | def Timer(name: str): |
| 30 | start = time.perf_counter() |
| 31 | yield |
| 32 | end = time.perf_counter() |
| 33 | # torch.cuda.synchronize() |
| 34 | logger.info(f"[TIMER] {name}: {(end - start)*1000:.2f} ms") |
| 35 | |
| 36 | logger = logging.getLogger("ARL") |
| 37 | logger.setLevel(logging.INFO) |
nothing calls this directly
no outgoing calls
no test coverage detected