def clean(self):
logger.info(f'destructor function, delete_all_member keys!')
for key in list(self.__dict__.keys()):
del self.__dict__[key]
python类析构函数防止显存泄漏
最新推荐文章于 2024-11-12 23:15:59 发布
def clean(self):
logger.info(f'destructor function, delete_all_member keys!')
for key in list(self.__dict__.keys()):
del self.__dict__[key]