Learn R Programming

tfdatasets (version 1.9)

as_tf_dataset: Add the tf_dataset class to a dataset

Description

Calling this function on a dataset adds the "tf_dataset" class to the dataset object. All datasets returned by functions in the tfdatasets package call this function on the dataset before returning it.

Usage

as_tf_dataset(dataset)

Arguments

dataset

A dataset

Value

A dataset with class "tf_dataset"