opennmt/runner.py
def _count_batch_accum(batch_size, target_batch_size, num_replicas=1):
    """Given the current batch size, the number of replicas, and the requested
    effective batch size, returns the number of gradients to accumulate.
    """
    return int(math.ceil(float(target_batch_size) / (batch_size * num_replicas)))
Given the current batch size, the number of replicas, and the requested
    effective batch size, returns the number of gradients to accumulate.
    
Given the current batch size, the number of replicas, and the requested
effective batch size, returns the number of gradients to accumulate.
Given the current batch size the number of replicas and the requested effective batch size returns the number of gradients to accumulate .
def _count_batch_accum(batch_size, target_batch_size, num_replicas=1):
    return int(math.ceil(float(target_batch_size) / (batch_size * num_replicas)))
def _count_batch_accum ( batch_size , target_batch_size , num_replicas = 1 ) : return int ( math . ceil ( float ( target_batch_size ) / ( batch_size * num_replicas ) ) )
Given the current batch size, the number of replicas, and the requested
effective batch size, returns the number of gradients to accumulate.
Given the current batch size the number of replicas and the requested effective batch size returns the number of gradients to accumulate .
"""Given the current batch size, the number of replicas, and the requested
    effective batch size, returns the number of gradients to accumulate.
    """
batch_size
target_batch_size
num_replicas