{"record":{"id":"fb463051ebcab229","repo":"tensorflow/models","slug":"dict-value-not-supported-in-converting","errorCode":null,"errorMessage":"dict value not supported in converting.","messagePattern":"dict value not supported in converting\\.","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"official/modeling/hyperparams/base_config.py","lineNumber":174,"sourceCode":"      # Deepcopy here is a temporary solution for preserving type in nested\n      # Config object.\n      return copy.deepcopy(v)\n    elif isinstance(v, dict):\n      return subconfig_type(v)\n    else:\n      raise TypeError('Unknown type: {!r}'.format(type(v)))\n\n  @classmethod\n  def _export_config(cls, v):\n    \"\"\"Returns v with Configs converted to dicts, recursively.\"\"\"\n    if isinstance(v, cls.IMMUTABLE_TYPES):\n      return v\n    elif isinstance(v, cls.SEQUENCE_TYPES):\n      return type(v)(map(cls._export_config, v))\n    elif isinstance(v, params_dict.ParamsDict):\n      return v.as_dict()\n    elif isinstance(v, dict):\n      raise TypeError('dict value not supported in converting.')\n    else:\n      raise TypeError('Unknown type: {!r}'.format(type(v)))\n\n  @classmethod\n  def _get_subconfig_type(\n      cls, k, subconfig_type=None\n  ) -> Type[params_dict.ParamsDict]:\n    \"\"\"Get element type by the field name.\n\n    Args:\n      k: the key/name of the field.\n      subconfig_type: default subconfig_type. If None, it is set to\n        Config.\n\n    Returns:\n      Config as default. If a type annotation is found for `k`,\n      1) returns the type of the annotation if it is subtype of ParamsDict;\n      2) returns the element type if the annotation of `k` is List[SubType]","sourceCodeStart":156,"sourceCodeEnd":192,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/modeling/hyperparams/base_config.py#L156-L192","documentation":"Error \"dict value not supported in converting.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/modeling/hyperparams/base_config.py:174 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":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}