{"record":{"id":"d57a152731a233fe","repo":"keras-team/keras","slug":"slice-update-requires-integral-start-indices","errorCode":null,"errorMessage":"`slice_update` requires integral start_indices","messagePattern":"`slice_update` requires integral start_indices","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/core.py","lineNumber":1445,"sourceCode":"\n    if isinstance(start_indices, (list, np.ndarray)):\n        start_indices = tuple(start_indices)\n    if not isinstance(start_indices, tuple):\n        raise ValueError(\n            \"`slice_update` is not supported by openvino backend\"\n            \" for `start_indices` of type {}\".format(type(start_indices))\n        )\n\n    zero_scalar = ov_opset.constant(0, Type.i32)\n    one_scalar = ov_opset.constant(1, Type.i32)\n    zero_tensor = ov_opset.constant([0], Type.i32)\n    one_tensor = ov_opset.constant([1], Type.i32)\n\n    processed_start_indices = []\n    for idx in start_indices:\n        val = get_ov_output(idx)\n        if not val.get_element_type().is_integral():\n            raise ValueError(\"`slice_update` requires integral start_indices\")\n        if val.get_element_type() != Type.i32:\n            val = ov_opset.convert(val, Type.i32).output(0)\n        if val.get_partial_shape().rank.get_length() == 0:\n            val = ov_opset.unsqueeze(val, zero_scalar).output(0)\n        processed_start_indices.append(val)\n\n    updates_shape = ov_opset.shape_of(updates_tensor, Type.i32).output(0)\n    rank = updates_tensor.get_partial_shape().rank.get_length()\n    if rank == 0:\n        # Handle scalar update\n        start_tensor = ov_opset.concat(processed_start_indices, axis=0).output(\n            0\n        )\n        # For scatter_nd_update,\n        # indices should be of shape [num_updates, rank_of_inputs]\n        # and updates should be of shape [num_updates]. Here num_updates is 1.\n        absolute_indices = ov_opset.unsqueeze(start_tensor, zero_scalar).output(\n            0","sourceCodeStart":1427,"sourceCodeEnd":1463,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/core.py#L1427-L1463","documentation":"Error \"`slice_update` requires integral start_indices\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/core.py:1445 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"}