python memory bug reports

Posted on August 12, 2021   1 minute read ∼ Filed in  : 

Python Memory

# output.register_hook(lambda grad: self.backward_hook(grad, module))
output.register_hook(partial(self.backward_hook, module=module))

The 1st line will massup the reference, resulting in memory leak.





END OF POST




Tags Cloud


Categories Cloud




It's the niceties that make the difference fate gives us the hand, and we play the cards.