Skip to content
Snippets Groups Projects
Commit be489989 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[sphinx] Fixed doctests

parent 2ad6d5d0
No related branches found
No related tags found
1 merge request!89Cleanup
Pipeline #45544 failed
......@@ -76,6 +76,7 @@ If you are working with Bob databases, below is an example of converting them to
>>> dataset = dataset_using_generator(samples, reader)
>>> dataset
<FlatMapDataset shapes: ((112, 92), ()), types: (tf.uint8, tf.int32)>
Create TFRecords from tf.data.Datasets
======================================
......@@ -91,6 +92,7 @@ TFRecords:
>>> dataset_to_tfrecord(dataset, path)
>>> dataset = dataset_from_tfrecord(path)
>>> dataset
<MapDataset shapes: ((112, 92), ()), types: (tf.uint8, tf.int32)>
There is also a script called ``bob tf dataset-to-tfrecord`` that wraps the
:any:`bob.learn.tensorflow.data.dataset_to_tfrecord` for easy Grid job
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment