3452cdbe9f0a964f22c5c4ea6aeb8c026af040d3,pynndescent/pynndescent_.py,NNDescent,compress_index,#NNDescent#,1456
Before Change
import gc
self.compressed = True
del self._rp_forest
del self._neighbor_graph
gc.collect()
return
After Change
self.compressed = True
if hasattr(self, "_rp_forest"):
del self._rp_forest
if hasattr(self, "_neighbor_graph"):
del self._neighbor_graph
gc.collect()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: lmcinnes/pynndescent
Commit Name: 3452cdbe9f0a964f22c5c4ea6aeb8c026af040d3
Time: 2020-09-07
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: compress_index
Project Name: junyanz/pytorch-CycleGAN-and-pix2pix
Commit Name: 5726675a25fd1e2a15bf879de4d00d6025923ae0
Time: 2018-07-25
Author: taesung89@gmail.com
File Name: models/base_model.py
Class Name: BaseModel
Method Name: load_networks