Skip to content

Commit 100ef56

Browse files
Conchylicultorcopybara-github
authored andcommitted
Automated documentation update
PiperOrigin-RevId: 279149682
1 parent 3298304 commit 100ef56

File tree

15 files changed

+272
-0
lines changed

15 files changed

+272
-0
lines changed

docs/api_docs/python/_toc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ toc:
171171
path: /datasets/api_docs/python/tfds/testing/mock_data
172172
- title: mock_kaggle_api
173173
path: /datasets/api_docs/python/tfds/testing/mock_kaggle_api
174+
- title: RaggedConstant
175+
path: /datasets/api_docs/python/tfds/testing/RaggedConstant
174176
- title: rm_tmp_dir
175177
path: /datasets/api_docs/python/tfds/testing/rm_tmp_dir
176178
- title: run_in_graph_and_eager_modes

docs/api_docs/python/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
* <a href="./tfds/testing/FeatureExpectationItem.md"><code>tfds.testing.FeatureExpectationItem</code></a>
7979
* <a href="./tfds/testing/FeatureExpectationsTestCase.md"><code>tfds.testing.FeatureExpectationsTestCase</code></a>
8080
* <a href="./tfds/testing/DatasetBuilderTestCase/failureException.md"><code>tfds.testing.FeatureExpectationsTestCase.failureException</code></a>
81+
* <a href="./tfds/testing/RaggedConstant.md"><code>tfds.testing.RaggedConstant</code></a>
8182
* <a href="./tfds/testing/SubTestCase.md"><code>tfds.testing.SubTestCase</code></a>
8283
* <a href="./tfds/testing/DatasetBuilderTestCase/failureException.md"><code>tfds.testing.SubTestCase.failureException</code></a>
8384
* <a href="./tfds/testing/TestCase.md"><code>tfds.testing.TestCase</code></a>

docs/api_docs/python/tfds/_api_cache.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
"tfds.testing.FeatureExpectationsTestCase.failureException.args": "tfds.download.DownloadError.args",
184184
"tfds.testing.FeatureExpectationsTestCase.failureException.message": "tfds.download.DownloadError.message",
185185
"tfds.testing.FeatureExpectationsTestCase.tempfile_cleanup": "tfds.testing.DatasetBuilderTestCase.tempfile_cleanup",
186+
"tfds.testing.RaggedConstant.__new__": "tfds.core.BeamBasedBuilder.__new__",
186187
"tfds.testing.SubTestCase.__new__": "tfds.core.BeamBasedBuilder.__new__",
187188
"tfds.testing.SubTestCase.failureException": "tfds.testing.DatasetBuilderTestCase.failureException",
188189
"tfds.testing.SubTestCase.failureException.__getitem__": "tfds.download.DownloadError.__getitem__",
@@ -540,6 +541,7 @@
540541
"tfds.features.Audio.__new__": true,
541542
"tfds.features.Audio.decode_batch_example": true,
542543
"tfds.features.Audio.decode_example": true,
544+
"tfds.features.Audio.decode_ragged_example": true,
543545
"tfds.features.Audio.dtype": true,
544546
"tfds.features.Audio.encode_example": true,
545547
"tfds.features.Audio.get_serialized_info": true,
@@ -574,6 +576,7 @@
574576
"tfds.features.BBoxFeature.__new__": true,
575577
"tfds.features.BBoxFeature.decode_batch_example": true,
576578
"tfds.features.BBoxFeature.decode_example": true,
579+
"tfds.features.BBoxFeature.decode_ragged_example": true,
577580
"tfds.features.BBoxFeature.dtype": true,
578581
"tfds.features.BBoxFeature.encode_example": true,
579582
"tfds.features.BBoxFeature.get_serialized_info": true,
@@ -586,6 +589,7 @@
586589
"tfds.features.ClassLabel.__new__": true,
587590
"tfds.features.ClassLabel.decode_batch_example": true,
588591
"tfds.features.ClassLabel.decode_example": true,
592+
"tfds.features.ClassLabel.decode_ragged_example": true,
589593
"tfds.features.ClassLabel.dtype": true,
590594
"tfds.features.ClassLabel.encode_example": true,
591595
"tfds.features.ClassLabel.get_serialized_info": true,
@@ -602,6 +606,7 @@
602606
"tfds.features.FeatureConnector.__new__": true,
603607
"tfds.features.FeatureConnector.decode_batch_example": true,
604608
"tfds.features.FeatureConnector.decode_example": true,
609+
"tfds.features.FeatureConnector.decode_ragged_example": true,
605610
"tfds.features.FeatureConnector.dtype": true,
606611
"tfds.features.FeatureConnector.encode_example": true,
607612
"tfds.features.FeatureConnector.get_serialized_info": true,
@@ -618,6 +623,7 @@
618623
"tfds.features.FeaturesDict.__new__": true,
619624
"tfds.features.FeaturesDict.decode_batch_example": true,
620625
"tfds.features.FeaturesDict.decode_example": true,
626+
"tfds.features.FeaturesDict.decode_ragged_example": true,
621627
"tfds.features.FeaturesDict.dtype": true,
622628
"tfds.features.FeaturesDict.encode_example": true,
623629
"tfds.features.FeaturesDict.get_serialized_info": true,
@@ -633,6 +639,7 @@
633639
"tfds.features.Image.__new__": true,
634640
"tfds.features.Image.decode_batch_example": true,
635641
"tfds.features.Image.decode_example": true,
642+
"tfds.features.Image.decode_ragged_example": true,
636643
"tfds.features.Image.dtype": true,
637644
"tfds.features.Image.encode_example": true,
638645
"tfds.features.Image.get_serialized_info": true,
@@ -649,6 +656,7 @@
649656
"tfds.features.Sequence.__new__": true,
650657
"tfds.features.Sequence.decode_batch_example": true,
651658
"tfds.features.Sequence.decode_example": true,
659+
"tfds.features.Sequence.decode_ragged_example": true,
652660
"tfds.features.Sequence.dtype": true,
653661
"tfds.features.Sequence.encode_example": true,
654662
"tfds.features.Sequence.feature": true,
@@ -662,6 +670,7 @@
662670
"tfds.features.Tensor.__new__": true,
663671
"tfds.features.Tensor.decode_batch_example": true,
664672
"tfds.features.Tensor.decode_example": true,
673+
"tfds.features.Tensor.decode_ragged_example": true,
665674
"tfds.features.Tensor.dtype": true,
666675
"tfds.features.Tensor.encode_example": true,
667676
"tfds.features.Tensor.get_serialized_info": true,
@@ -679,6 +688,7 @@
679688
"tfds.features.Text.__new__": true,
680689
"tfds.features.Text.decode_batch_example": true,
681690
"tfds.features.Text.decode_example": true,
691+
"tfds.features.Text.decode_ragged_example": true,
682692
"tfds.features.Text.dtype": true,
683693
"tfds.features.Text.encode_example": true,
684694
"tfds.features.Text.encoder": true,
@@ -698,6 +708,7 @@
698708
"tfds.features.Video.__new__": true,
699709
"tfds.features.Video.decode_batch_example": true,
700710
"tfds.features.Video.decode_example": true,
711+
"tfds.features.Video.decode_ragged_example": true,
701712
"tfds.features.Video.dtype": true,
702713
"tfds.features.Video.encode_example": true,
703714
"tfds.features.Video.feature": true,
@@ -1108,6 +1119,10 @@
11081119
"tfds.testing.FeatureExpectationsTestCase.tearDownClass": true,
11091120
"tfds.testing.FeatureExpectationsTestCase.tempfile_cleanup": true,
11101121
"tfds.testing.FeatureExpectationsTestCase.test_session": true,
1122+
"tfds.testing.RaggedConstant": false,
1123+
"tfds.testing.RaggedConstant.__init__": true,
1124+
"tfds.testing.RaggedConstant.__new__": true,
1125+
"tfds.testing.RaggedConstant.build": true,
11111126
"tfds.testing.SubTestCase": false,
11121127
"tfds.testing.SubTestCase.MOCK_MONARCH": true,
11131128
"tfds.testing.SubTestCase.__call__": true,

docs/api_docs/python/tfds/features/Audio.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta itemprop="property" content="__init__"/>
77
<meta itemprop="property" content="decode_batch_example"/>
88
<meta itemprop="property" content="decode_example"/>
9+
<meta itemprop="property" content="decode_ragged_example"/>
910
<meta itemprop="property" content="encode_example"/>
1011
<meta itemprop="property" content="get_serialized_info"/>
1112
<meta itemprop="property" content="get_tensor_info"/>
@@ -102,6 +103,17 @@ graph (in `tf.data.Dataset.map(features.decode_example)`).
102103
* <b>`tensor_data`</b>: Tensor or dictionary of tensor, output of the
103104
tf.data.Dataset object
104105

106+
<h3 id="decode_ragged_example"><code>decode_ragged_example</code></h3>
107+
108+
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/feature.py">View
109+
source</a>
110+
111+
```python
112+
decode_ragged_example(example_data)
113+
```
114+
115+
See base class for details.
116+
105117
<h3 id="encode_example"><code>encode_example</code></h3>
106118

107119
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/audio_feature.py">View

docs/api_docs/python/tfds/features/BBoxFeature.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta itemprop="property" content="__init__"/>
77
<meta itemprop="property" content="decode_batch_example"/>
88
<meta itemprop="property" content="decode_example"/>
9+
<meta itemprop="property" content="decode_ragged_example"/>
910
<meta itemprop="property" content="encode_example"/>
1011
<meta itemprop="property" content="get_serialized_info"/>
1112
<meta itemprop="property" content="get_tensor_info"/>
@@ -122,6 +123,17 @@ graph (in `tf.data.Dataset.map(features.decode_example)`).
122123
* <b>`tensor_data`</b>: Tensor or dictionary of tensor, output of the
123124
tf.data.Dataset object
124125

126+
<h3 id="decode_ragged_example"><code>decode_ragged_example</code></h3>
127+
128+
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/feature.py">View
129+
source</a>
130+
131+
```python
132+
decode_ragged_example(example_data)
133+
```
134+
135+
See base class for details.
136+
125137
<h3 id="encode_example"><code>encode_example</code></h3>
126138

127139
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/bounding_boxes.py">View

docs/api_docs/python/tfds/features/ClassLabel.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<meta itemprop="property" content="__init__"/>
99
<meta itemprop="property" content="decode_batch_example"/>
1010
<meta itemprop="property" content="decode_example"/>
11+
<meta itemprop="property" content="decode_ragged_example"/>
1112
<meta itemprop="property" content="encode_example"/>
1213
<meta itemprop="property" content="get_serialized_info"/>
1314
<meta itemprop="property" content="get_tensor_info"/>
@@ -123,6 +124,17 @@ graph (in `tf.data.Dataset.map(features.decode_example)`).
123124
* <b>`tensor_data`</b>: Tensor or dictionary of tensor, output of the
124125
tf.data.Dataset object
125126

127+
<h3 id="decode_ragged_example"><code>decode_ragged_example</code></h3>
128+
129+
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/feature.py">View
130+
source</a>
131+
132+
```python
133+
decode_ragged_example(example_data)
134+
```
135+
136+
See base class for details.
137+
126138
<h3 id="encode_example"><code>encode_example</code></h3>
127139

128140
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/class_label_feature.py">View

docs/api_docs/python/tfds/features/FeatureConnector.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta itemprop="property" content="shape"/>
66
<meta itemprop="property" content="decode_batch_example"/>
77
<meta itemprop="property" content="decode_example"/>
8+
<meta itemprop="property" content="decode_ragged_example"/>
89
<meta itemprop="property" content="encode_example"/>
910
<meta itemprop="property" content="get_serialized_info"/>
1011
<meta itemprop="property" content="get_tensor_info"/>
@@ -107,6 +108,33 @@ graph (in `tf.data.Dataset.map(features.decode_example)`).
107108
* <b>`tensor_data`</b>: Tensor or dictionary of tensor, output of the
108109
tf.data.Dataset object
109110

111+
<h3 id="decode_ragged_example"><code>decode_ragged_example</code></h3>
112+
113+
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/feature.py">View
114+
source</a>
115+
116+
```python
117+
decode_ragged_example(tfexample_data)
118+
```
119+
120+
Decode nested features from a tf.RaggedTensor.
121+
122+
This function is used to decode features wrapped in nested
123+
<a href="../../tfds/features/Sequence.md"><code>tfds.features.Sequence()</code></a>.
124+
By default, this function apply `decode_batch_example` on the flat values of the
125+
ragged tensor. For optimization, features can overwrite this method to apply a
126+
custom batch decoding.
127+
128+
#### Args:
129+
130+
* <b>`tfexample_data`</b>: `tf.RaggedTensor` inputs containing the nested
131+
encoded examples.
132+
133+
#### Returns:
134+
135+
* <b>`tensor_data`</b>: The decoded `tf.RaggedTensor` or dictionary of tensor,
136+
output of the tf.data.Dataset object
137+
110138
<h3 id="encode_example"><code>encode_example</code></h3>
111139

112140
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/feature.py">View

docs/api_docs/python/tfds/features/FeaturesDict.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<meta itemprop="property" content="__len__"/>
1111
<meta itemprop="property" content="decode_batch_example"/>
1212
<meta itemprop="property" content="decode_example"/>
13+
<meta itemprop="property" content="decode_ragged_example"/>
1314
<meta itemprop="property" content="encode_example"/>
1415
<meta itemprop="property" content="get_serialized_info"/>
1516
<meta itemprop="property" content="get_tensor_info"/>
@@ -223,6 +224,33 @@ Decode the serialize examples.
223224

224225
* <b>`example`</b>: Nested `dict` containing the decoded nested examples.
225226

227+
<h3 id="decode_ragged_example"><code>decode_ragged_example</code></h3>
228+
229+
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/feature.py">View
230+
source</a>
231+
232+
```python
233+
decode_ragged_example(tfexample_data)
234+
```
235+
236+
Decode nested features from a tf.RaggedTensor.
237+
238+
This function is used to decode features wrapped in nested
239+
<a href="../../tfds/features/Sequence.md"><code>tfds.features.Sequence()</code></a>.
240+
By default, this function apply `decode_batch_example` on the flat values of the
241+
ragged tensor. For optimization, features can overwrite this method to apply a
242+
custom batch decoding.
243+
244+
#### Args:
245+
246+
* <b>`tfexample_data`</b>: `tf.RaggedTensor` inputs containing the nested
247+
encoded examples.
248+
249+
#### Returns:
250+
251+
* <b>`tensor_data`</b>: The decoded `tf.RaggedTensor` or dictionary of tensor,
252+
output of the tf.data.Dataset object
253+
226254
<h3 id="encode_example"><code>encode_example</code></h3>
227255

228256
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/features_dict.py">View

docs/api_docs/python/tfds/features/Image.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta itemprop="property" content="__init__"/>
77
<meta itemprop="property" content="decode_batch_example"/>
88
<meta itemprop="property" content="decode_example"/>
9+
<meta itemprop="property" content="decode_ragged_example"/>
910
<meta itemprop="property" content="encode_example"/>
1011
<meta itemprop="property" content="get_serialized_info"/>
1112
<meta itemprop="property" content="get_tensor_info"/>
@@ -155,6 +156,33 @@ decode_example(example)
155156

156157
Reconstruct the image from the tf example.
157158

159+
<h3 id="decode_ragged_example"><code>decode_ragged_example</code></h3>
160+
161+
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/feature.py">View
162+
source</a>
163+
164+
```python
165+
decode_ragged_example(tfexample_data)
166+
```
167+
168+
Decode nested features from a tf.RaggedTensor.
169+
170+
This function is used to decode features wrapped in nested
171+
<a href="../../tfds/features/Sequence.md"><code>tfds.features.Sequence()</code></a>.
172+
By default, this function apply `decode_batch_example` on the flat values of the
173+
ragged tensor. For optimization, features can overwrite this method to apply a
174+
custom batch decoding.
175+
176+
#### Args:
177+
178+
* <b>`tfexample_data`</b>: `tf.RaggedTensor` inputs containing the nested
179+
encoded examples.
180+
181+
#### Returns:
182+
183+
* <b>`tensor_data`</b>: The decoded `tf.RaggedTensor` or dictionary of tensor,
184+
output of the tf.data.Dataset object
185+
158186
<h3 id="encode_example"><code>encode_example</code></h3>
159187

160188
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/image_feature.py">View

docs/api_docs/python/tfds/features/Sequence.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<meta itemprop="property" content="__init__"/>
99
<meta itemprop="property" content="decode_batch_example"/>
1010
<meta itemprop="property" content="decode_example"/>
11+
<meta itemprop="property" content="decode_ragged_example"/>
1112
<meta itemprop="property" content="encode_example"/>
1213
<meta itemprop="property" content="get_serialized_info"/>
1314
<meta itemprop="property" content="get_tensor_info"/>
@@ -183,6 +184,33 @@ Decode the serialize examples.
183184

184185
* <b>`example`</b>: Nested `dict` containing the decoded nested examples.
185186

187+
<h3 id="decode_ragged_example"><code>decode_ragged_example</code></h3>
188+
189+
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/feature.py">View
190+
source</a>
191+
192+
```python
193+
decode_ragged_example(tfexample_data)
194+
```
195+
196+
Decode nested features from a tf.RaggedTensor.
197+
198+
This function is used to decode features wrapped in nested
199+
<a href="../../tfds/features/Sequence.md"><code>tfds.features.Sequence()</code></a>.
200+
By default, this function apply `decode_batch_example` on the flat values of the
201+
ragged tensor. For optimization, features can overwrite this method to apply a
202+
custom batch decoding.
203+
204+
#### Args:
205+
206+
* <b>`tfexample_data`</b>: `tf.RaggedTensor` inputs containing the nested
207+
encoded examples.
208+
209+
#### Returns:
210+
211+
* <b>`tensor_data`</b>: The decoded `tf.RaggedTensor` or dictionary of tensor,
212+
output of the tf.data.Dataset object
213+
186214
<h3 id="encode_example"><code>encode_example</code></h3>
187215

188216
<a target="_blank" href="https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/core/features/sequence_feature.py">View

0 commit comments

Comments
 (0)