    def current():
        """Obtain the current target.

        Returns
        -------
        Target
            return the current target object.

        Raises
        ------
        RuntimeError
            If no target is set, this will raise a RuntimeError.
        """
        if CURRENT_TARGET is None:
            raise RuntimeError("Target is not set yet.")
        return CURRENT_TARGET
Obtain the current target.

Returns
-------
Target
return the current target object.

Raises
------
RuntimeError
If no target is set, this will raise a RuntimeError.
python/aitemplate/backend/target.py