tf.contrib.distribute.require_replica_context

View source on GitHub

Verify in replica_ctx replica context.