# tf.contrib.layers.one_hot_column

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/layers/python/layers/feature_column.py#L1289-L1300) |

Creates an `_OneHotColumn` for a one-hot or multi-hot repr in a DNN.

    tf.contrib.layers.one_hot_column(
        sparse_id_column
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `sparse_id_column` | A _SparseColumn which is created by `sparse_column_with_*` or crossed_column functions. Note that `combiner` defined in `sparse_id_column` is ignored. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| An _OneHotColumn. ||

<br />