(*args, **kwargs)
| 57 | |
| 58 | @wraps(func) |
| 59 | def wrapper(*args, **kwargs): |
| 60 | with torch.autograd.profiler.profile(use_cuda=True) as prof: |
| 61 | result = func(*args, **kwargs) |
| 62 | |
| 63 | print(prof, flush=True) |
| 64 | |
| 65 | return result |
| 66 | |
| 67 | return wrapper |
| 68 |
nothing calls this directly
no test coverage detected
searching dependent graphs…