{"record":{"id":"14a2027bc1f4d168","repo":"tensorflow/models","slug":"unknown-block-type","errorCode":null,"errorMessage":"Unknown block type {}","messagePattern":"Unknown block type (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/movinet/modeling/movinet.py","lineNumber":533,"sourceCode":"          stochastic_depth_idx += 1\n      elif isinstance(block, HeadSpec):\n        layer_obj = movinet_layers.Head(\n            project_filters=block.project_filters,\n            conv_type=self._conv_type,\n            activation=self._activation,\n            kernel_initializer=self._kernel_initializer,\n            kernel_regularizer=self._kernel_regularizer,\n            batch_norm_layer=self._norm,\n            batch_norm_momentum=self._norm_momentum,\n            batch_norm_epsilon=self._norm_epsilon,\n            use_sync_bn=self._use_sync_bn,\n            average_pooling_type=self._average_pooling_type,\n            state_prefix='state_head',\n            name='head')\n        x, states = layer_obj(x, states=states)\n        endpoints['head'] = x\n      else:\n        raise ValueError('Unknown block type {}'.format(block))\n\n    outputs = (endpoints, states) if self._output_states else endpoints\n\n    return inputs, outputs\n\n  def _get_initial_state_shapes(\n      self,\n      block_specs: Sequence[BlockSpec],\n      input_shape: Union[Sequence[int], tf.Tensor],\n      use_positional_encoding: bool = False) -> Dict[str, Sequence[int]]:\n    \"\"\"Generates names and shapes for all input states.\n\n    Args:\n      block_specs: sequence of specs used for creating a model.\n      input_shape: the expected 5D shape of the image input.\n      use_positional_encoding: whether the model will use positional encoding.\n\n    Returns:","sourceCodeStart":515,"sourceCodeEnd":551,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/movinet/modeling/movinet.py#L515-L551","documentation":"Error \"Unknown block type {}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/movinet/modeling/movinet.py:533 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"}