Missed TensorFlow World? Check out the recap. Learn more

tf.contrib.distribute.require_replica_context

View source on GitHub

Verify in replica_ctx replica context.

tf.contrib.distribute.require_replica_context(replica_ctx)