{"record":{"id":"468fcae39e8ae377","repo":"keras-team/keras","slug":"slice-operation-requires-tuple-for-start-indice","errorCode":null,"errorMessage":"`slice` operation requires tuple for `start_indices with the openvino backend. Received: start_indices={start_indices}","messagePattern":"`slice` operation requires tuple for `start_indices with the openvino backend\\. Received: start_indices=(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/core.py","lineNumber":1363,"sourceCode":"    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        )\n    if not isinstance(shape, tuple):\n        raise ValueError(\n            \"`slice` operation requires tuple for `shape` with the \"\n            f\"openvino backend. Received: shape={shape}\"\n        )\n\n    axes = []\n    start = []\n    stop = []\n\n    def prepare_slice_index(val):\n        val_type = val.get_element_type()\n        if not val_type.is_integral():\n            raise ValueError(\n                \"`slice` is not supported by OpenVINO backend \"","sourceCodeStart":1345,"sourceCodeEnd":1381,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/core.py#L1345-L1381","documentation":"Error \"`slice` operation requires tuple for `start_indices with the openvino backend. Received: start_indices={start_indices}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/core.py:1363 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"}