single device)
  * **chunks** (*int*) -- number of micro-batches (default: "1")

  * **checkpoint** (*str*) -- when to enable checkpointing, one of
    "'always'", "'except_last'", or "'never'" (default:
    "'except_last'"). "'never'" disables checkpointing completely,
    "'except_last'" enables checkpointing for all micro-batches
    except the last one and "'always'" enables checkpointing for
    all micro-batches.

  * **deferred_batch_norm** (*bool*) -- whether to use deferred
    "BatchNorm" moving statistics (default: "False"). If set to
    "True", we track statistics across multiple micro-batches to
    update the running statistics per mini-batch.

Raises:
      * TypeError -- the module is not a "nn.Sequential".
  * **ValueError** -- invalid arguments

Example::
      Pipeline of two FC layers across GPUs 0 and 1.
  >>> # Need to initialize RPC framework first.
  >>> os.environ['MASTER_ADDR'] = 'localhost'
