Closed chubbant closed 1 year ago
Thank you for your feedback. This is an issue with discovered with some of the latest versions of Tensorflow.
You have two options:
Thanks Samuel! I downgraded to Tensorflow 2.8.0, and memory use was more stable. Not completely stable (there is still a slow increase in memory use with repeated searches), but it is stable enough to get loads done.
AiZynthFinder works fantastically well when analysing a single SMILES. However, when repeatedly using the AiZynthFinder Python interface, I noticed that memory use spikes during the initial stocks upload process then falls back a bit and stabilises. Memory use then steadily creeps up (adding between 70 MB and 1,100 MB) with each SMILES searched, until the RAM is exhausted.
Thus far I think I've tracked it down to the finder.tree_search() while loop that contains a call to self.tree.one_iteration(). Is there a way to 'reuse' the AiZynthFinder module without the time-consuming stocks upload step for each SMILES?