{"record":{"id":"d0a62190a35a56fe","repo":"tensorflow/models","slug":"unknown-type-r","errorCode":null,"errorMessage":"Unknown type: {!r}","messagePattern":"Unknown type: (.+?)","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"official/modeling/hyperparams/base_config.py","lineNumber":162,"sourceCode":"      return v\n    elif isinstance(v, cls.SEQUENCE_TYPES):\n      # Only support one layer of sequence.\n      if not cls._isvalidsequence(v):\n        raise TypeError(\n            'Invalid sequence: only supports single level {!r} of {!r} or '\n            'dict or ParamsDict found: {!r}'.format(cls.SEQUENCE_TYPES,\n                                                    cls.IMMUTABLE_TYPES, v))\n      import_fn = functools.partial(\n          cls._import_config, subconfig_type=subconfig_type)\n      return type(v)(map(import_fn, v))\n    elif isinstance(v, params_dict.ParamsDict):\n      # 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","sourceCodeStart":144,"sourceCodeEnd":180,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/modeling/hyperparams/base_config.py#L144-L180","documentation":"Error \"Unknown type: {!r}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/modeling/hyperparams/base_config.py:162 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"}