keras-team/keras · error · AttributeError

The `row_splits_dtype` attribute of KerasTensor is immutable

Error message

The `row_splits_dtype` attribute of KerasTensor is immutable. One should create a new instance of KerasTensor for this.

What it means

Error "The `row_splits_dtype` attribute of KerasTensor is immutable. One should create a new instance of KerasTensor for this." thrown in keras-team/keras.

Source

Thrown at keras/src/backend/common/keras_tensor.py:119

    @property
    def ragged_rank(self):
        return self._ragged_rank

    @ragged_rank.setter
    def ragged_rank(self, value):
        raise AttributeError(
            "The `ragged_rank` attribute of KerasTensor is immutable. One "
            "should create a new instance of KerasTensor for this."
        )

    @property
    def row_splits_dtype(self):
        return self._row_splits_dtype

    @row_splits_dtype.setter
    def row_splits_dtype(self, value):
        raise AttributeError(
            "The `row_splits_dtype` attribute of KerasTensor is immutable. One "
            "should create a new instance of KerasTensor for this."
        )

    @property
    def ragged(self):
        return self._ragged

    @ragged.setter
    def ragged(self, value):
        raise AttributeError(
            "The `ragged` attribute of KerasTensor is immutable. One should "
            "create a new instance of KerasTensor for this."
        )

    @property
    def ndim(self):
        return len(self.shape)

View on GitHub (pinned to 7a34a03db6)

When it happens

Trigger: Thrown at keras/src/backend/common/keras_tensor.py:119 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of keras-team/keras@7a34a03db6 (2026-08-25). Data as JSON: /api/errors/0f167e222204911e. Report an issue: GitHub.