{"record":{"id":"91cf8f9e489029fc","repo":"tensorflow/models","slug":"activation-not-implemented","errorCode":null,"errorMessage":"Activation {} not implemented.","messagePattern":"Activation (.+?) not implemented\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/legacy/detection/modeling/architecture/spinenet.py","lineNumber":155,"sourceCode":"    self._block_specs = (\n        build_block_specs() if block_specs is None else block_specs\n    )\n    self._endpoints_num_filters = endpoints_num_filters\n    self._resample_alpha = resample_alpha\n    self._block_repeats = block_repeats\n    self._filter_size_scale = filter_size_scale\n    self._kernel_initializer = kernel_initializer\n    self._kernel_regularizer = kernel_regularizer\n    self._bias_regularizer = bias_regularizer\n    self._use_sync_bn = use_sync_bn\n    self._norm_momentum = norm_momentum\n    self._norm_epsilon = norm_epsilon\n    if activation == 'relu':\n      self._activation = tf.nn.relu\n    elif activation == 'swish':\n      self._activation = tf.nn.swish\n    else:\n      raise ValueError('Activation {} not implemented.'.format(activation))\n    self._init_block_fn = 'bottleneck'\n    self._num_init_blocks = 2\n\n    if use_sync_bn:\n      self._norm = layers.experimental.SyncBatchNormalization\n    else:\n      self._norm = layers.BatchNormalization\n\n    if tf_keras.backend.image_data_format() == 'channels_last':\n      self._bn_axis = -1\n    else:\n      self._bn_axis = 1\n\n    # Build SpineNet.\n    inputs = tf_keras.Input(shape=input_specs.shape[1:])\n\n    net = self._build_stem(inputs=inputs)\n    net = self._build_scale_permuted_network(","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/legacy/detection/modeling/architecture/spinenet.py#L137-L173","documentation":"Error \"Activation {} not implemented.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/legacy/detection/modeling/architecture/spinenet.py:155 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"}