RSVP for your your local TensorFlow Everywhere event today!

tf.contrib.distribute.require_replica_context

View source on GitHub

Verify in replica_ctx replica context.