Tensorflow-tf.data module

tf.data-handle complex input

tf.data.Dataset represents a series of elements, each element contains one or more Tensor objects, these objects are called components .

Establishment method

  1. Create a Dataset directly from Tensor.
    For example: Dataset.from_tensor_slices() The parameters can be Numpy, List and TensorArray, which will be automatically converted to Tensor
  2. Create a Dataset by using transformations on one or more tf.data.Dataset objects

Example:Insert picture description hereInsert picture description hereInsert picture description hereInsert picture description hereInsert picture description hereInsert picture description here

tf.data input module exampleInsert picture description hereInsert picture description hereInsert picture description here

Guess you like

Origin blog.csdn.net/qq_35134206/article/details/109224781