Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid keeping reference to function nodes in CupyMemoryProfileHook #4300
That can unnecessarily cause OOM error if multiple loops are measured at once.
(Note: the numbers in the profiling result is not affected by accumulation)
This fix is to keep function names in the call history instead of function objects.