We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code is generated by a fuzzing testing tool, and I find that the memory use is increasing as the times of calls.
import sys import tracemalloc import numpy memory_recorder = [] tracemalloc.start() start_snapshot = tracemalloc.take_snapshot() for i in range(0, 1000): try: numpy.nested_iters(['e', 'f'], [[1], [2]]) except: pass if i % 100 == 0: one_snapshot = tracemalloc.take_snapshot() memory_recorder.append(one_snapshot.compare_to(start_snapshot, 'lineno')[0]) for i in range(1, len(memory_recorder)): print(memory_recorder[i].traceback) print(memory_recorder[i].size) print() tracemalloc.stop()
..py:15 16160 ..py:15 32160 ..py:15 48160 ..py:15 64160 ..py:15 80160 ..py:15 96160 ..py:15 112160 ..py:15 128160 ..py:15 144160
In commit 6d9e294 Date: Thu Jul 1 09:42:16 2021
The text was updated successfully, but these errors were encountered:
Looking into this as part of the Grace Hopper OSD NumPy sprint
Sorry, something went wrong.
No branches or pull requests
This code is generated by a fuzzing testing tool, and I find that the memory use is increasing as the times of calls.
Reproducing code example:
Error message:
NumPy/Python version information:
In commit 6d9e294
Date: Thu Jul 1 09:42:16 2021
The text was updated successfully, but these errors were encountered: