{"record":{"id":"7118f009e2dd79b4","repo":"keras-team/keras","slug":"axes-must-be-a-tuple-of-length-2","errorCode":null,"errorMessage":"axes must be a tuple of length 2","messagePattern":"axes must be a tuple of length 2","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/backend/openvino/numpy.py","lineNumber":2013,"sourceCode":"        end_mask=all_ones_mask,\n    )\n    return OpenVINOKerasTensor(result.output(0))\n\n\ndef fliplr(x):\n    return flip(x, axis=1)\n\n\ndef flipud(x):\n    return flip(x, axis=0)\n\n\ndef rot90(array, k=1, axes=(0, 1)):\n    \"\"\"Rotate an array by 90 degrees in the plane specified by axes.\"\"\"\n    array = get_ov_output(array)\n\n    if not isinstance(axes, (tuple, list)) or len(axes) != 2:\n        raise ValueError(\"axes must be a tuple of length 2\")\n\n    shape = array.get_partial_shape()\n    ndim = shape.rank.get_length()\n    if ndim is None:\n        raise ValueError(\n            \"`rot90` does not support tensors with dynamic rank \"\n            \"for the OpenVINO backend.\"\n        )\n\n    axis1 = canonicalize_axis(axes[0], ndim)\n    axis2 = canonicalize_axis(axes[1], ndim)\n\n    if axis1 == axis2:\n        raise ValueError(\"axes must be different\")\n\n    k = k % 4\n    if k == 0:\n        return OpenVINOKerasTensor(array)","sourceCodeStart":1995,"sourceCodeEnd":2031,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/backend/openvino/numpy.py#L1995-L2031","documentation":"Error \"axes must be a tuple of length 2\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/backend/openvino/numpy.py:2013 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"}