{"record":{"id":"1fa0efc188b2c007","repo":"keras-team/keras","slug":"slice-update-is-not-supported-by-openvino-backen","errorCode":null,"errorMessage":"`slice_update` is not supported by openvino backend for `start_indices` of type {}","messagePattern":"`slice_update` is not supported by openvino backend for `start_indices` of type (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/core.py","lineNumber":1431,"sourceCode":"\n    # Apply reshape to ensure output matches expected shape\n    # Convert None (dynamic) dimensions to -1 for OpenVINO compatibility\n    if all(dim is None or (isinstance(dim, int) and dim >= 0) for dim in shape):\n        reshape_pattern = [(-1 if dim is None else dim) for dim in shape]\n        target_shape = ov_opset.constant(reshape_pattern, Type.i32).output(0)\n        result = ov_opset.reshape(result, target_shape, False).output(0)\n\n    return OpenVINOKerasTensor(result)\n\n\ndef slice_update(inputs, start_indices, updates):\n    inputs = get_ov_output(inputs)\n    updates_tensor = get_ov_output(updates)\n\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)","sourceCodeStart":1413,"sourceCodeEnd":1449,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/core.py#L1413-L1449","documentation":"Error \"`slice_update` is not supported by openvino backend for `start_indices` of type {}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/core.py:1431 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"}