TensorFlow Interview Questions and Answers
Question: What is the purpose of the tf.distribute.Strategy in TensorFlow?Answer: tf.distribute.Strategy is used for distributed training in TensorFlow. It allows you to efficiently train models across multiple GPUs or devices, improving training speed and scalability.Example: strategy = tf.distribute.MirroredStrategy() with strategy.scope(): model = tf.keras.Sequential([...]) |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: