Google I/O returns May 18-20! Reserve space and build your schedule Register now

tf.contrib.distribute.require_replica_context

View source on GitHub

Verify in replica_ctx replica context.