{"record":{"id":"67ab9f2b1f51ffec","repo":"keras-team/keras","slug":"array-inputs-to-associative-scan-must-have-the-sam-67ab9f","errorCode":null,"errorMessage":"Array inputs to associative_scan must have the same first dimension. (saw: {})","messagePattern":"Array inputs to associative_scan must have the same first dimension\\. \\(saw: (.+?)\\)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/core.py","lineNumber":1233,"sourceCode":"    def _unsqueeze(x, axis):\n        x_ov = get_ov_output(x)\n        const_axis = ov_opset.constant(axis, Type.i32).output(0)\n        return OpenVINOKerasTensor(\n            ov_opset.unsqueeze(x_ov, const_axis).output(0)\n        )\n\n    if reverse:\n        elems_flat = [_flip(elem, axis) for elem in elems_flat]\n\n    def _combine(a_flat, b_flat):\n        a = tree.pack_sequence_as(elems, a_flat)\n        b = tree.pack_sequence_as(elems, b_flat)\n        c = f(a, b)\n        return tree.flatten(c)\n\n    num_elems = int(elems_flat[0].shape[axis])\n    if not all(int(elem.shape[axis]) == num_elems for elem in elems_flat[1:]):\n        raise ValueError(\n            \"Array inputs to associative_scan must have the same \"\n            \"first dimension. (saw: {})\".format(\n                [elem.shape for elem in elems_flat]\n            )\n        )\n\n    def _interleave(a, b, axis):\n        n_a = a.shape[axis]\n        n_b = b.shape[axis]\n\n        a_common = slice_along_axis(a, 0, n_b, axis=axis)\n        a_exp = _unsqueeze(a_common, axis + 1)\n        b_exp = _unsqueeze(b, axis + 1)\n        interleaved = _concat([a_exp, b_exp], axis + 1)\n\n        interleaved_ov = get_ov_output(interleaved)\n        orig_shape = ov_opset.shape_of(interleaved_ov, Type.i32).output(0)\n        ndim = len(interleaved_ov.get_partial_shape())","sourceCodeStart":1215,"sourceCodeEnd":1251,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/core.py#L1215-L1251","documentation":"Error \"Array inputs to associative_scan must have the same first dimension. (saw: {})\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/core.py:1233 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"}