{"record":{"id":"c42b88db2e34418e","repo":"tensorflow/models","slug":"inconsistent-backbone-type-backbone-type","errorCode":null,"errorMessage":"Inconsistent backbone type {backbone_type}","messagePattern":"Inconsistent backbone type (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/movinet/modeling/movinet.py","lineNumber":718,"sourceCode":"    }\n    return config_dict\n\n  @classmethod\n  def from_config(cls, config, custom_objects=None):\n    return cls(**config)\n\n\n@factory.register_backbone_builder('movinet')\ndef build_movinet(\n    input_specs: tf_keras.layers.InputSpec,\n    backbone_config: hyperparams.Config,\n    norm_activation_config: hyperparams.Config,\n    l2_regularizer: tf_keras.regularizers.Regularizer = None) -> tf_keras.Model:  # pytype: disable=annotation-type-mismatch  # typed-keras\n  \"\"\"Builds MoViNet backbone from a config.\"\"\"\n  backbone_type = backbone_config.type\n  backbone_cfg = backbone_config.get()\n  if backbone_type != 'movinet':\n    raise ValueError(f'Inconsistent backbone type {backbone_type}')\n  if norm_activation_config.activation is not None:\n    logging.warn('norm_activation is not used in MoViNets, but specified: '\n                 '%s', norm_activation_config.activation)\n    logging.warn('norm_activation is ignored.')\n\n  return Movinet(\n      model_id=backbone_cfg.model_id,\n      causal=backbone_cfg.causal,\n      use_positional_encoding=backbone_cfg.use_positional_encoding,\n      conv_type=backbone_cfg.conv_type,\n      se_type=backbone_cfg.se_type,\n      input_specs=input_specs,\n      activation=backbone_cfg.activation,\n      gating_activation=backbone_cfg.gating_activation,\n      output_states=backbone_cfg.output_states,\n      use_sync_bn=norm_activation_config.use_sync_bn,\n      norm_momentum=norm_activation_config.norm_momentum,\n      norm_epsilon=norm_activation_config.norm_epsilon,","sourceCodeStart":700,"sourceCodeEnd":736,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/movinet/modeling/movinet.py#L700-L736","documentation":"Error \"Inconsistent backbone type {backbone_type}\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/movinet/modeling/movinet.py:718 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"}