{"record":{"id":"7d9a67928901436e","repo":"keras-team/keras","slug":"unsupported-type-of-indices-or-sections-type-ind","errorCode":null,"errorMessage":"unsupported type of indices_or_sections: {type(indices_or_sections)}","messagePattern":"unsupported type of indices_or_sections: (.+?)","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/numpy.py","lineNumber":4386,"sourceCode":"            split_lengths.append(indices[i] - indices[i - 1])\n\n        last_index_tensor = ov_opset.constant(indices[-1], dtype=Type.i64)\n        remaining_length_tensor = ov_opset.subtract(\n            dim_at_axis_tensor, last_index_tensor\n        )\n\n        length_parts = []\n        length_parts.append(ov_opset.constant(split_lengths, dtype=Type.i64))\n        length_parts.append(remaining_length_tensor)\n        length_tensor = ov_opset.concat(length_parts, axis=0)\n\n        splits = ov_opset.variadic_split(x, axis_tensor, length_tensor)\n        result = []\n        for i in range(len(split_lengths) + 1):\n            result.append(OpenVINOKerasTensor(splits.output(i)))\n        return result\n\n    raise TypeError(\n        f\"unsupported type of indices_or_sections: {type(indices_or_sections)}\"\n    )\n\n\ndef array_split(x, indices_or_sections, axis=0):\n    original_shape = x.shape\n    x = get_ov_output(x)\n\n    num_splits_val = indices_or_sections\n    total_size = original_shape[axis]\n    if total_size is None:\n        raise ValueError(\n            f\"Cannot use array_split with static Python logic on dynamic axis. \"\n            f\"Axis {axis} has unknown dimension for shape {original_shape}.\"\n        )\n\n    base_size = total_size // num_splits_val\n    remainder = total_size % num_splits_val","sourceCodeStart":4368,"sourceCodeEnd":4404,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/numpy.py#L4368-L4404","documentation":"Error \"unsupported type of indices_or_sections: {type(indices_or_sections)}\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/numpy.py:4386 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"}