{"record":{"id":"ef97433275434c60","repo":"tensorflow/models","slug":"unexpected-inputs-type-to-self-class-ef9743","errorCode":null,"errorMessage":"Unexpected inputs type to {self.__class__}.","messagePattern":"Unexpected inputs type to (.+?)\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/perceiver/modeling/networks/positional_decoder.py","lineNumber":114,"sourceCode":"    \"\"\"Return decoded output of latent vector.\n\n    Uses the positional encoding as query for the decoder and uses the\n    `latent_output` as key-value for the decoder.\n    Args:\n      inputs:\n        A `Dict[Text, tf_keras.Input]` with `latent_output` and\n        `input_mask`. The shape of `latent_output` is shape\n        `(z_index_dim, d_latents)` with dtype `tf.float32` and `input_mask` is\n        shape `(None)` with dtype `tf.int32`.\n      training:\n        Flag to indicate training status. Default is `None`. It is passed to\n        the decoder as is.\n\n    Returns:\n      `Dict[Text, tf.Tensor]` decoded `sequence_output` of a latent vector.\n    \"\"\"\n    if not isinstance(inputs, dict):\n      raise ValueError(f'Unexpected inputs type to {self.__class__}.')\n\n    latent_output = inputs['latent_output']\n    query_mask = inputs.get('input_mask')\n    decoder_query = self._output_pos_enc(tf.ones(\n        (tf.shape(latent_output)[0], self._output_index_dim, self._d_model),\n        dtype=latent_output.dtype))\n    z = latent_output\n\n    sequence_output = self._decoder(\n        [decoder_query, z],\n        query_mask=query_mask,\n        training=training)\n    return dict(sequence_output=sequence_output)\n","sourceCodeStart":96,"sourceCodeEnd":128,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/perceiver/modeling/networks/positional_decoder.py#L96-L128","documentation":"Error \"Unexpected inputs type to {self.__class__}.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/perceiver/modeling/networks/positional_decoder.py:114 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"}