Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tfjs-data/src/readers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function func<T extends TensorContainer>(
* return iterator;
* }
* const ds = tf.data.generator(makeIterator);
* ds.forEachAsync(e => console.log(e));
* await ds.forEachAsync(e => console.log(e));
* ```
*
* Example of creating a dataset from a generator:
Expand All @@ -186,7 +186,7 @@ export function func<T extends TensorContainer>(
* }
*
* const ds = tf.data.generator(dataGenerator);
* ds.forEachAsync(e => console.log(e));
* await ds.forEachAsync(e => console.log(e));
* ```
*
* @param generator A Javascript generator function that returns a JavaScript
Expand Down