# tfio.experimental.columnar.VarLenFeatureWithRank

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/io/blob/v0.24.0/tensorflow_io/python/experimental/varlen_feature_with_rank.py#L20-L39) |

A class used to represent VarLenFeature with rank.

    tfio.experimental.columnar.VarLenFeatureWithRank(
        dtype: tf.dtypes.DType,
        rank: int = 1
    )

### Used in the notebooks

| Used in the tutorials |
|---|
| - [Avro Dataset API](https://www.tensorflow.org/io/tutorials/avro) |

This allows rank to be passed by users, and when parsing,
rank will be used to determine the shape of sparse feature.
User should use this class as opposed to VarLenFeature
when defining features of data.

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `dtype` | <br /> <br /> |
| `rank` | <br /> <br /> |

<br />