{"record":{"id":"e5e27ed2cf73f7d7","repo":"keras-team/keras","slug":"unsupported-reduction-reduction-e5e27e","errorCode":null,"errorMessage":"Unsupported reduction: {reduction}","messagePattern":"Unsupported reduction: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/core.py","lineNumber":1348,"sourceCode":"def scatter_update(inputs, indices, updates, reduction=None):\n    inputs = get_ov_output(inputs)\n    indices = get_ov_output(indices)\n    updates = get_ov_output(updates)\n\n    inputs, updates = align_operand_types(inputs, updates, \"scatter_update\")\n\n    # Map Keras reduction to OpenVINO ScatterNDUpdate reduction.\n    # OpenVINO Opset 15 supports: \"none\", \"sum\", \"sub\", \"prod\", \"min\", \"max\".\n    if reduction is None:\n        ov_reduction = \"none\"\n    elif reduction == \"add\":\n        ov_reduction = \"sum\"\n    elif reduction == \"mul\":\n        ov_reduction = \"prod\"\n    elif reduction in (\"max\", \"min\"):\n        ov_reduction = reduction\n    else:\n        raise ValueError(f\"Unsupported reduction: {reduction}\")\n\n    result = ov_opset.scatter_nd_update(\n        inputs, indices, updates, reduction=ov_reduction\n    ).output(0)\n    return OpenVINOKerasTensor(result)\n\n\ndef slice(inputs, start_indices, shape):\n    inputs = get_ov_output(inputs)\n    if isinstance(start_indices, (list, np.ndarray)):\n        start_indices = tuple(start_indices)\n    if isinstance(shape, (list, np.ndarray)):\n        shape = tuple(shape)\n    if not isinstance(start_indices, tuple):\n        raise ValueError(\n            \"`slice` operation requires tuple for `start_indices with the \"\n            f\"openvino backend. Received: start_indices={start_indices}\"\n        )","sourceCodeStart":1330,"sourceCodeEnd":1366,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/core.py#L1330-L1366","documentation":"Error \"Unsupported reduction: {reduction}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/core.py:1348 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"}