<br />

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

Converts tf.int64 features to tf.int32, keep other features the same.

    tfm.nlp.serving_modules.features_to_int32(
        features: Dict[str, tf.Tensor]
    ) -> Dict[str, tf.Tensor]

tf.Example only supports tf.int64, but the TPU only supports tf.int32.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `features` | Input tensor dictionary. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Features with tf.int64 converted to tf.int32. ||

<br />