keras/src/backend/common/keras_tensor.py/KerasTensor/__int__
class KerasTensor:    def __int__(self):
        raise ValueError(
            "A KerasTensor is symbolic: it's a placeholder for a shape "
            "an a dtype. It doesn't have any actual numerical value. "
            "You cannot convert it to an int."
        )