Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.contrib.distribute.require_replica_context

tf.contrib.distribute.require_replica_context(replica_ctx)

Defined in tensorflow/python/distribute/distribute_lib.py.

Verify in replica_ctx replica context.