as_array_iterator: Convert tf_dataset to an iterator that yields R arrays.

View source: R/dataset_methods.R

as_array_iteratorR Documentation

Convert tf_dataset to an iterator that yields R arrays.

Description

Convert tf_dataset to an iterator that yields R arrays.

Usage

as_array_iterator(dataset)

Arguments

dataset

A tensorflow dataset

Value

An iterable. Use iterate() or iter_next() to access values from the iterator.


rstudio/tfdatasets documentation built on July 22, 2024, 12:41 a.m.