parameters: (state, bucket)
return_statement: return process_bucket_with_remote_server(state, bucket)
docstring: r"""
      A ddp communication hook that averages sparse and dense tensors using
      process_bucket_with_remote_server method.
      Args:
          state (object): maintains state during the training process
          bucket (GradBucket): gradient bucket
docstring_summary: r"""
      A ddp communication hook that averages sparse and dense tensors using
      process_bucket_with_remote_server method.
      Args:
          state (object): maintains state during the training process
          bucket (GradBucket): gradient bucket
docstring_tokens: r A ddp communication hook that averages sparse and dense tensors using process_bucket_with_remote_server method . Args : state ( object ) : maintains state during the training process bucket ( GradBucket ) : gradient bucket
function: def rpc_hook(state, bucket):
      r"""
      A ddp communication hook that averages sparse and dense tensors using
      process_bucket_with_remote_server method.
      Args:
          state (object): maintains state during the training process
          bucket (GradBucket): gradient bucket
      """
      return process_bucket_with_remote_server(state, bucket)
function_tokens: def rpc_hook ( state , bucket ) : return process_bucket_with_remote_server ( state , bucket )