{"record":{"id":"1f66f84f50093660","repo":"keras-team/keras","slug":"select-condlist-and-choicelist-must-have-the-sa","errorCode":null,"errorMessage":"select(): condlist and choicelist must have the same length","messagePattern":"select\\(\\): condlist and choicelist must have the same length","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/numpy.py","lineNumber":5365,"sourceCode":"    else:\n        raise ValueError(\n            f\"mode: {mode} not available chose from valid, same, full.\"\n        )\n\n    axes = ov_opset.constant([0, 1], dtype=Type.i64).output(0)\n    x2 = ov_opset.unsqueeze(x2, axes).output(0)\n    x1 = ov_opset.unsqueeze(x1, axes).output(0)\n\n    result = ov_opset.convolution(x1, x2, [1], [0], [0], [1]).output(0)\n\n    result = ov_opset.squeeze(result, axes).output(0)\n\n    return OpenVINOKerasTensor(result)\n\n\ndef select(condlist, choicelist, default=0):\n    if len(condlist) != len(choicelist):\n        raise ValueError(\n            \"select(): condlist and choicelist must have the same length\"\n        )\n    conds = [get_ov_output(c) for c in condlist]\n    choices = [get_ov_output(v) for v in choicelist]\n\n    result = get_ov_output(default)\n    for cond_idx in reversed(range(len(conds))):\n        cond = conds[cond_idx]\n        choice = choices[cond_idx]\n        choice, result = _align_operand_types(choice, result, \"select()\")\n        result = ov_opset.select(cond, choice, result).output(0)\n    return OpenVINOKerasTensor(result)\n\n\ndef slogdet(x):\n    x = convert_to_tensor(x)\n    x_ov = get_ov_output(x)\n    x_ov_type = x_ov.get_element_type()","sourceCodeStart":5347,"sourceCodeEnd":5383,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/numpy.py#L5347-L5383","documentation":"Error \"select(): condlist and choicelist must have the same length\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/numpy.py:5365 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"}