{"record":{"id":"0c3c91193ef09643","repo":"keras-team/keras","slug":"bottom-padding-must-be-0-received-bottom-padd","errorCode":null,"errorMessage":"bottom_padding must be >= 0. Received: bottom_padding={bottom_padding}","messagePattern":"bottom_padding must be >= 0\\. Received: bottom_padding=(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/ops/image.py","lineNumber":1683,"sourceCode":"            target_height = self.top_padding + height + self.bottom_padding\n        target_width = self.target_width\n        if target_width is None and width is not None:\n            target_width = self.left_padding + width + self.right_padding\n\n        if height is not None:\n            top_padding = self.top_padding\n            bottom_padding = self.bottom_padding\n            if top_padding is None:\n                top_padding = target_height - height - bottom_padding\n            if bottom_padding is None:\n                bottom_padding = target_height - height - top_padding\n            if top_padding < 0:\n                raise ValueError(\n                    \"top_padding must be >= 0. \"\n                    f\"Received: top_padding={top_padding}\"\n                )\n            if bottom_padding < 0:\n                raise ValueError(\n                    \"bottom_padding must be >= 0. \"\n                    f\"Received: bottom_padding={bottom_padding}\"\n                )\n            if target_height < 0:\n                raise ValueError(\n                    \"target_height must be >= 0. \"\n                    f\"Received: target_height={target_height}\"\n                )\n\n        if width is not None:\n            left_padding = self.left_padding\n            right_padding = self.right_padding\n            if left_padding is None:\n                left_padding = target_width - width - right_padding\n            if right_padding is None:\n                right_padding = target_width - width - left_padding\n            if left_padding < 0:\n                raise ValueError(","sourceCodeStart":1665,"sourceCodeEnd":1701,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/ops/image.py#L1665-L1701","documentation":"Error \"bottom_padding must be >= 0. Received: bottom_padding={bottom_padding}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/ops/image.py:1683 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"}