Learn R Programming

tfdatasets (version 2.17.0)

tensor_slices_dataset: Creates a dataset whose elements are slices of the given tensors.

Description

Creates a dataset whose elements are slices of the given tensors.

Usage

tensor_slices_dataset(tensors)

Value

A dataset.

Arguments

tensors

A nested structure of tensors, each having the same size in the first dimension.

See Also

Other tensor datasets: sparse_tensor_slices_dataset(), tensors_dataset()