Exemplo n.º 1
0
 def __del__(self):
     # When createGenerator raises an error, _generator is not initialized
     if hasattr(self, '_generator'):
         curand.destroyGenerator(self._generator)
Exemplo n.º 2
0
 def __del__(self):
     curand.destroyGenerator(self._generator)
Exemplo n.º 3
0
 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)