tfds.as_numpy | TensorFlow Datasets
www.tensorflow.org › datasets › api_docsJul 29, 2021 · as_numpy converts a possibly nested structure of tf.data.Dataset s and tf.Tensor s to iterables of NumPy arrays and NumPy arrays, respectively. Note that because TensorFlow has support for ragged tensors and NumPy has no equivalent representation, tf.RaggedTensor s are left as-is for the user to deal with them (e.g. using to_list () ).
Load NumPy data | TensorFlow Core
www.tensorflow.org › tutorials › load_dataNov 11, 2021 · Load NumPy arrays with tf.data.Dataset. Use the datasets. Shuffle and batch the datasets. Build and train a model. View on TensorFlow.org. Run in Google Colab. View source on GitHub. Download notebook. This tutorial provides an example of loading data from NumPy arrays into a tf.data.Dataset.