{"record":{"id":"65b9f3550e8d44a8","repo":"keras-team/keras","slug":"saved-configuration-not-understood-configuration","errorCode":null,"errorMessage":"Saved configuration not understood. Configuration should be a dictionary, string, tuple or list. Received: config={config}.","messagePattern":"Saved configuration not understood\\. Configuration should be a dictionary, string, tuple or list\\. Received: config=(.+?)\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"keras/src/legacy/saving/saving_utils.py","lineNumber":219,"sourceCode":"        if isinstance(obj, str):\n            return True  # Serialized function or string.\n        return False\n\n    if config is None:\n        return None\n    if _is_single_object(config):\n        return deserialize_fn(config)\n    elif isinstance(config, dict):\n        return {\n            k: _deserialize_nested_config(deserialize_fn, v)\n            for k, v in config.items()\n        }\n    elif isinstance(config, (tuple, list)):\n        return [\n            _deserialize_nested_config(deserialize_fn, obj) for obj in config\n        ]\n\n    raise ValueError(\n        \"Saved configuration not understood. Configuration should be a \"\n        f\"dictionary, string, tuple or list. Received: config={config}.\"\n    )\n\n\ndef _deserialize_metric(metric_config):\n    \"\"\"Deserialize metrics, leaving special strings untouched.\"\"\"\n    if metric_config in [\"accuracy\", \"acc\", \"crossentropy\", \"ce\"]:\n        # Do not deserialize accuracy and cross-entropy strings as we have\n        # special case handling for these in compile, based on model output\n        # shape.\n        return metric_config\n    return metrics_module.deserialize(metric_config)\n\n\ndef _resolve_compile_arguments_compat(obj, obj_config, module):\n    \"\"\"Resolves backwards compatibility issues with training config arguments.\n","sourceCodeStart":201,"sourceCodeEnd":237,"githubUrl":"https://github.com/keras-team/keras/blob/7a34a03db60bf60042242d6a556fc3be119046a5/keras/src/legacy/saving/saving_utils.py#L201-L237","documentation":"Error \"Saved configuration not understood. Configuration should be a dictionary, string, tuple or list. Received: config={config}.\" thrown in keras-team/keras.","triggerScenarios":"Thrown at keras/src/legacy/saving/saving_utils.py:219 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"}