tensorflow/models · error · NotImplementedError

Attention cell is not implemented yet.

Error message

Attention cell is not implemented yet.

What it means

Error "Attention cell is not implemented yet." thrown in tensorflow/models.

Source

Thrown at official/projects/s3d/modeling/s3d.py:195

          temporal_conv_initializer=self._temporal_conv_initializer,
          kernel_regularizer=self._kernel_regularizer,
          parameterized_conv_layer=self._get_parameterized_conv_layer_impl(),
          name=self._get_layer_naming_fn()(end_point))(
              net)
    else:
      net = tf_keras.layers.MaxPool3D(
          pool_size=filters[0],  # pyrefly: ignore[bad-index]
          strides=filters[1],  # pyrefly: ignore[bad-index]
          padding='same',
          name=self._get_layer_naming_fn()(end_point))(
              net)
    end_points[end_point] = net
    if non_local_block:
      # TODO(b/182299420): Implement non local block in TF2.
      raise NotImplementedError('Non local block is not implemented yet.')
    if attention_cell:
      # TODO(b/182299420): Implement attention cell in TF2.
      raise NotImplementedError('Attention cell is not implemented yet.')
    if attention_cell_super_graph:
      # TODO(b/182299420): Implement attention cell super graph in TF2.
      raise NotImplementedError('Attention cell super graph is not implemented'
                                ' yet.')
    return net, end_points

  def get_config(self):
    config_dict = {
        'input_specs': self._input_specs,
        'final_endpoint': self._final_endpoint,
        'first_temporal_kernel_size': self._first_temporal_kernel_size,
        'temporal_conv_start_at': self._temporal_conv_start_at,
        'gating_start_at': self._gating_start_at,
        'swap_pool_and_1x1x1': self._swap_pool_and_1x1x1,
        'gating_style': self._gating_style,
        'use_sync_bn': self._use_sync_bn,
        'norm_momentum': self._norm_momentum,
        'norm_epsilon': self._norm_epsilon,

View on GitHub (pinned to e006f5f0d5)

When it happens

Trigger: Thrown at official/projects/s3d/modeling/s3d.py:195 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tensorflow/models@e006f5f0d5 (2026-08-24). Data as JSON: /api/errors/2342999ae83d504d. Report an issue: GitHub.