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
I found that self.loader.graph.allocate_memory takes a lot of memory. It seems work for reusing the memory.
self.loader.graph.allocate_memory
>>> ffcv/loader/epoch_iterator.py if not hasattr(self.loader,'memory_allocations'): print("Memory Allocation 19219.1 MiB for bs=128 and batches_ahead=10") self.memory_allocations = self.loader.graph.allocate_memory( self.loader.batch_size, self.loader.batches_ahead + 2 ) self.loader.memory_allocations = self.memory_allocations else: print("Reuse memory") self.memory_allocations = self.loader.memory_allocations
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found that
self.loader.graph.allocate_memory
takes a lot of memory. It seems work for reusing the memory.The text was updated successfully, but these errors were encountered: