s='no'>sess</span> <span class='kw'>&lt;-</span> <span class='no'>tf</span>$<span class='fu'>Session</span>()
<span class='no'>iterator</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/pkg/tfdatasets/man/make-iterator.html'>make_iterator_one_shot</a></span>(<span class='no'>dataset</span>)
<span class='no'>next_batch</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/pkg/tfdatasets/man/iterator_get_next.html'>iterator_get_next</a></span>(<span class=