    def is_a_const_num(self) -> bool:
        """Returns whether this Tensor represents a constant number."""
        return len(self._attrs["shape"]) == 0 and self._attrs["value"] is not None
Returns whether this Tensor represents a constant number.
python/aitemplate/compiler/base.py