completed.
record_event(event=None)
  Records an event.

  Parameters:
     **event** (*torch.cuda.Event**, **optional*) -- event to
     record. If not given, a new one will be allocated.

  Returns:
     Recorded event.

synchronize()
  Wait for all the kernels in this stream to complete.

  Note:

    This is a wrapper around "cudaStreamSynchronize()": see CUDA
    Stream documentation for more info.

wait_event(event)
  Makes all future work submitted to the stream wait for an event.

  Parameters:
     **event** (*torch.cuda.Event*) -- an event to wait for.

  Note:

    This is a wrapper around "cudaStreamWaitEvent()": see CUDA
    Stream documentation for more info.This function returns
    without waiting for "event": only future operations are
    affected.

wait_stream(stream)
  Synchronizes with another stream.

  All future work submitted to this stream will wait until all
