{"record":{"id":"1ad9838746e55c32","repo":"keras-team/keras","slug":"unknown-fill-mode-fill-mode-expected-of-one-1ad983","errorCode":null,"errorMessage":"Unknown `fill_mode` {fill_mode}. Expected of one {self._SUPPORTED_FILL_MODE}.","messagePattern":"Unknown `fill_mode` (.+?)\\. Expected of one (.+?)\\.","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"keras/src/layers/preprocessing/image_preprocessing/random_shear.py","lineNumber":98,"sourceCode":"    _SUPPORTED_INTERPOLATION = (\"nearest\", \"bilinear\")\n\n    def __init__(\n        self,\n        x_factor=0.0,\n        y_factor=0.0,\n        interpolation=\"bilinear\",\n        fill_mode=\"reflect\",\n        fill_value=0.0,\n        data_format=None,\n        seed=None,\n        **kwargs,\n    ):\n        super().__init__(data_format=data_format, **kwargs)\n        self.x_factor = self._set_factor_with_name(x_factor, \"x_factor\")\n        self.y_factor = self._set_factor_with_name(y_factor, \"y_factor\")\n\n        if fill_mode not in self._SUPPORTED_FILL_MODE:\n            raise NotImplementedError(\n                f\"Unknown `fill_mode` {fill_mode}. Expected of one \"\n                f\"{self._SUPPORTED_FILL_MODE}.\"\n            )\n        if interpolation not in self._SUPPORTED_INTERPOLATION:\n            raise NotImplementedError(\n                f\"Unknown `interpolation` {interpolation}. Expected of one \"\n                f\"{self._SUPPORTED_INTERPOLATION}.\"\n            )\n\n        self.fill_mode = fill_mode\n        self.fill_value = fill_value\n        self.interpolation = interpolation\n        self.seed = seed\n        self.generator = SeedGenerator(seed)\n        self.supports_jit = False\n\n    def _set_factor_with_name(self, factor, factor_name):\n        if isinstance(factor, (tuple, list)):","sourceCodeStart":80,"sourceCodeEnd":116,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/layers/preprocessing/image_preprocessing/random_shear.py#L80-L116","documentation":"Error \"Unknown `fill_mode` {fill_mode}. Expected of one {self._SUPPORTED_FILL_MODE}.\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/layers/preprocessing/image_preprocessing/random_shear.py:98 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7a34a03db60bf60042242d6a556fc3be119046a5","analyzedAt":"2026-08-25T21:25:25.994Z","schemaVersion":2},"datasetVersion":"2026-08-26T02:17:13.382Z"}