{"record":{"id":"bccb5c163cfda7af","repo":"tensorflow/models","slug":"output-type-s-is-not-supported","errorCode":null,"errorMessage":"output type %s is not supported","messagePattern":"output type (.+?) is not supported","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/nlp/modeling/models/dual_encoder.py","lineNumber":122,"sourceCode":"          name='dot_product')\n\n      inputs = [\n          left_word_ids, left_mask, left_type_ids, right_word_ids, right_mask,\n          right_type_ids\n      ]\n      left_logits, right_logits = dot_products(left_encoded, right_encoded)\n\n      outputs = dict(left_logits=left_logits, right_logits=right_logits)\n\n    elif output == 'predictions':\n      inputs = [left_word_ids, left_mask, left_type_ids]\n\n      # To keep consistent with legacy BERT hub modules, the outputs are\n      # \"pooled_output\" and \"sequence_output\".\n      outputs = dict(\n          sequence_output=left_sequence_output, pooled_output=left_encoded)\n    else:\n      raise ValueError('output type %s is not supported' % output)\n\n    # b/164516224\n    # Once we've created the network using the Functional API, we call\n    # super().__init__ as though we were invoking the Functional API Model\n    # constructor, resulting in this object having all the properties of a model\n    # created using the Functional API. Once super().__init__ is called, we\n    # can assign attributes to `self` - note that all `self` assignments are\n    # below this line.\n    super(DualEncoder, self).__init__(inputs=inputs, outputs=outputs, **kwargs)\n\n    config_dict = {\n        'network': network,\n        'max_seq_length': max_seq_length,\n        'normalize': normalize,\n        'logit_scale': logit_scale,\n        'logit_margin': logit_margin,\n        'output': output,\n    }","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/nlp/modeling/models/dual_encoder.py#L104-L140","documentation":"Error \"output type %s is not supported\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/nlp/modeling/models/dual_encoder.py:122 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"}