'Forces the device memory to the trash.'

def free(self):

    if self.is_managed:
        if (not self._finalizer.alive):
            raise RuntimeError('Freeing    dead    memory')
        self._finalizer()
        assert (not self._finalizer.alive)
