def __del__(self): # Don't complain if handle destruction fails because the plan # may have already been cleaned up: try: cufft.cufftDestroy(self.handle) except: pass
def __del__(self): cufft.cufftDestroy(self.handle)