You have been asked to develop an input pipeline for an ML training model that processes images from disparate sources at a low latency. You discover that your input data does not fit in memory. How should you create a dataset following Google-recommended best practices?
A) Create a tf.data.Dataset.prefetch transformation. Create a tf.data.Dataset.prefetch transformation.
B) Convert the images to tf.Tensor objects, and then run Dataset.from_tensor_slices() . Convert the images to tf.Tensor objects, and then run Dataset.from_tensor_slices() .
C) Convert the images to tf.Tensor objects, and then run tf.data.Dataset.from_tensors() . tf.data.Dataset.from_tensors()
D) Convert the images into TFRecords, store the images in Cloud Storage, and then use the tf.data API to read the images for training. Convert the images into TFRecords, store the images in Cloud Storage, and then use the tf.data API to read the images for training.
Correct Answer:
Verified
Q5: You are training a Resnet model on
Q6: You work for a social media company.
Q7: You have trained a deep neural network
Q8: You have written unit tests for a
Q9: You developed an ML model with AI
Q11: You are building an ML model to
Q12: You work for a large hotel chain
Q13: You are developing a Kubeflow pipeline on
Q14: You have a demand forecasting pipeline in
Q15: You need to train a computer vision
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents