def __del__(self): # When createGenerator raises an error, _generator is not initialized if hasattr(self, '_generator'): curand.destroyGenerator(self._generator)
def __del__(self): curand.destroyGenerator(self._generator)
def __del__(self, is_shutting_down=_util.is_shutting_down): # When createGenerator raises an error, _generator is not initialized if is_shutting_down(): return if hasattr(self, '_generator'): curand.destroyGenerator(self._generator)