<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/core/tf_example_feature_key.py#L28-L62) |

Base dataclass for defining tf.Example proto feature keys.

    tfm.core.tf_example_feature_key.TfExampleFeatureKeyBase(
        prefix: Optional[str] = None
    )

This class defines the logic of adding prefix to feature keys. Subclasses
will define feature keys for a specific feature type in data fields.

> [!NOTE]
> **Note:** Please follow subclass examples in this module to define feature keys for a new feature type.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `prefix` | A prefix string that will be added before the feature key string with a trailing slash '/'. |

<br />

## Methods

### `__eq__`

    __eq__(
        other
    )

Return self==value.