    def __exit__(self, ptype, value, trace):
        """Exit the target context manager."""
        self._profile_cache = None
        global CURRENT_TARGET
        CURRENT_TARGET = None
Exit the target context manager.
python/aitemplate/backend/target.py