{"record":{"id":"487debd3dbe14871","repo":"keras-team/keras","slug":"multiple-target-dimensions-are-not-supported-expe","errorCode":null,"errorMessage":"Multiple target dimensions are not supported. Expected: None, int, (int, int), Provided: {axes} ","messagePattern":"Multiple target dimensions are not supported\\. Expected: None, int, \\(int, int\\), Provided: (.+?) ","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/layers/merging/dot.py","lineNumber":88,"sourceCode":"    if x_batch_size is not None and y_batch_size is not None:\n        if x_batch_size != y_batch_size:\n            raise ValueError(\n                f\"Cannot do batch_dot on inputs \"\n                f\"with different batch sizes. \"\n                f\"Received inputs with shapes \"\n                f\"{x_shape} and {y_shape}.\"\n            )\n    if isinstance(axes, int):\n        axes = [axes, axes]\n\n    if axes is None:\n        if y_ndim == 2:\n            axes = [x_ndim - 1, y_ndim - 1]\n        else:\n            axes = [x_ndim - 1, y_ndim - 2]\n\n    if any(isinstance(a, (list, tuple)) for a in axes):\n        raise ValueError(\n            f\"Multiple target dimensions are not supported. \"\n            f\"Expected: None, int, (int, int), \"\n            f\"Provided: {axes} \"\n        )\n\n    # if tuple, convert to list.\n    axes = list(axes)\n\n    # convert negative indices.\n    if axes[0] < 0:\n        axes[0] += x_ndim\n    if axes[1] < 0:\n        axes[1] += y_ndim\n\n    # sanity checks\n    if 0 in axes:\n        raise ValueError(\n            \"Cannot perform batch_dot over axis 0. \"","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/layers/merging/dot.py#L70-L106","documentation":"Error \"Multiple target dimensions are not supported. Expected: None, int, (int, int), Provided: {axes} \" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/layers/merging/dot.py:88 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"}