{"record":{"id":"cc7b64c46803d5ec","repo":"keras-team/keras","slug":"rank-rank-convolutions-are-not-currently-impleme","errorCode":null,"errorMessage":"Rank {rank} convolutions are not currently implemented. Received: rank={rank}","messagePattern":"Rank (.+?) convolutions are not currently implemented\\. Received: rank=(.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/layers/rnn/conv_lstm.py","lineNumber":117,"sourceCode":"        bias_initializer=\"zeros\",\n        unit_forget_bias=True,\n        kernel_regularizer=None,\n        recurrent_regularizer=None,\n        bias_regularizer=None,\n        kernel_constraint=None,\n        recurrent_constraint=None,\n        bias_constraint=None,\n        dropout=0.0,\n        recurrent_dropout=0.0,\n        seed=None,\n        **kwargs,\n    ):\n        super().__init__(**kwargs)\n        self.seed = seed\n        self.seed_generator = backend.random.SeedGenerator(seed=seed)\n        self.rank = rank\n        if self.rank > 3:\n            raise ValueError(\n                f\"Rank {rank} convolutions are not currently \"\n                f\"implemented. Received: rank={rank}\"\n            )\n        self.filters = filters\n        self.kernel_size = argument_validation.standardize_tuple(\n            kernel_size, self.rank, \"kernel_size\"\n        )\n        self.strides = argument_validation.standardize_tuple(\n            strides, self.rank, \"strides\", allow_zero=True\n        )\n        self.padding = argument_validation.standardize_padding(padding)\n        self.data_format = backend.standardize_data_format(data_format)\n        self.dilation_rate = argument_validation.standardize_tuple(\n            dilation_rate, self.rank, \"dilation_rate\"\n        )\n        if max(self.strides) > 1 and max(self.dilation_rate) > 1:\n            raise ValueError(\n                \"Specifying `strides > 1` is not compatible with \"","sourceCodeStart":99,"sourceCodeEnd":135,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/layers/rnn/conv_lstm.py#L99-L135","documentation":"Raised by ConvLSTM (its __init__ after assigning self.rank) when the requested convolution rank exceeds 3. Keras implements ConvLSTM1D/2D/3D only; a rank of 4 or higher has no convolution implementation, so it is rejected immediately.","triggerScenarios":"Thrown at keras/src/layers/rnn/conv_lstm.py:117 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use rank 1, 2, or 3 (e.g. via ConvLSTM2D/ConvLSTM3D classes)","For 4D+ spatiotemporal data, reshape or split the input so the convolution rank is at most 3"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7a34a03db60bf60042242d6a556fc3be119046a5","analyzedAt":"2026-08-25T21:25:25.994Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}