    def upper_bound(self) -> int:
        """Returns upper bound of this dynamic dim."""
        return self._attrs["values"][-1]
Returns upper bound of this dynamic dim.
python/aitemplate/compiler/base.py