Skip to content

Commit cae2527

Browse files
Conchylicultorcopybara-github
authored andcommitted
Minor docstring formatting fix
PiperOrigin-RevId: 252683029
1 parent 45aa8e5 commit cae2527

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tensorflow_datasets/core/features/sequence_feature.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ class Sequence(top_level_feature.TopLevelFeature):
4242
4343
Example:
4444
At construction time:
45+
4546
```
4647
tfds.features.Sequence(tfds.features.Image(), length=NB_FRAME)
4748
```
4849
4950
or:
51+
5052
```
5153
tfds.features.Sequence({
5254
'frame': tfds.features.Image(shape=(64, 64, 3))
@@ -55,6 +57,7 @@ class Sequence(top_level_feature.TopLevelFeature):
5557
```
5658
5759
During data generation:
60+
5861
```
5962
yield {
6063
'frame': np.ones(shape=(NB_FRAME, 64, 64, 3)),
@@ -63,6 +66,7 @@ class Sequence(top_level_feature.TopLevelFeature):
6366
```
6467
6568
Tensor returned by `.as_dataset()`:
69+
6670
```
6771
{
6872
'frame': tf.Tensor(shape=(NB_FRAME, 64, 64, 3), dtype=tf.uint8),

0 commit comments

Comments
 (0)