Created
January 5, 2019 15:44
-
-
Save hadifar/de6d8cf031e8057da7b36fb9ad979c68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NUM_GPUS = 4 | |
strategy = tf.contrib.distribute.MirroredStrategy(num_gpus=NUM_GPUS) | |
config = tf.estimator.RunConfig(train_distribute=strategy) | |
estimator = tf.estimator.Estimator(model, config=config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment