MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / wrapper

Function wrapper

monai/utils/profiling.py:59–65  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

sumFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…