Repository: pytorch
Issue: Fix docstring errors in stream.py, pipe.py, blockpartition.py, microbatch.py, namespace.py, profile.py, tracker.py, portal.py, layout.py, __init__.py
Labels: module: docs,triaged,medium,docathon-h2-2023

Please fix the following issues. To test locally, run: 
 ```
pydocstyle path-to-file --count
```
Run this command before and after fixing the errors. This command prints out the number of errors at the end of the output. Paste the output to your PR description with the number before and after. 
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `NoChunk`, **Line**: 24, **Description**: 1 blank line required after class docstring (found 0)
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `NoChunk`, **Line**: 24, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `NoChunk`, **Line**: 24, **Description**: First line should end with a period (not 'r')
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `Batch`, **Line**: 41, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `values`, **Line**: 63, **Description**: First line should end with a period (not 'h')
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `find_tensor_idx`, **Line**: 67, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `find_tensor_idx`, **Line**: 67, **Description**: First line should be in imperative mood (perhaps 'Retrieve', not 'Retrieves')
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `get_device`, **Line**: 79, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `get_device`, **Line**: 79, **Description**: First line should be in imperative mood (perhaps 'Retrieve', not 'Retrieves')
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `call`, **Line**: 90, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `call`, **Line**: 90, **Description**: First line should end with a period (not 's')
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `call`, **Line**: 90, **Description**: First line should be in imperative mood (perhaps 'Call', not 'Calls')
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `check`, **Line**: 160, **Description**: No blank lines allowed after function docstring (found 1)
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `check`, **Line**: 160, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `check`, **Line**: 160, **Description**: First line should end with a period (not 's')
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `check`, **Line**: 160, **Description**: First line should be in imperative mood (perhaps 'Check', not 'Checks')
- **File**: `torch/distributed/pipeline/sync/microbatch.py`, **Entity**: `scatter`, **Line**: 176, **Description**: First line should be in imperative mood (perhaps 'Split', not 'Splits')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `_recommend_auto_balance`, **Line**: 43, **Description**: First line should be in imperative mood (perhaps 'Expand', not 'Expands')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `_retrieve_device`, **Line**: 95, **Description**: No blank lines allowed after function docstring (found 1)
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `_retrieve_device`, **Line**: 95, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `_retrieve_device`, **Line**: 95, **Description**: First line should end with a period (not 's')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `_retrieve_device`, **Line**: 95, **Description**: First line should be in imperative mood (perhaps 'Validate', not 'Validates')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `PipeSequential`, **Line**: 122, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `WithDevice`, **Line**: 137, **Description**: 1 blank line required after class docstring (found 0)
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `WithDevice`, **Line**: 137, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `WithDevice`, **Line**: 137, **Description**: First line should end with a period (not '`')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `Pipe`, **Line**: 225, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `Pipe`, **Line**: 225, **Description**: First line should end with a period (not 'e')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `__len__`, **Line**: 358, **Description**: First line should be in imperative mood (perhaps 'Count', not 'Counts')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `__getitem__`, **Line**: 362, **Description**: First line should be in imperative mood (perhaps 'Get', not 'Gets')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `__iter__`, **Line**: 383, **Description**: First line should be in imperative mood (perhaps 'Iterate', not 'Iterates')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `_ensure_copy_streams`, **Line**: 417, **Description**: First line should be in imperative mood (perhaps 'Ensure', not 'Ensures')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `forward`, **Line**: 431, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `forward`, **Line**: 431, **Description**: First line should end with a period (not 'n')
- **File**: `torch/distributed/pipeline/sync/pipe.py`, **Entity**: `forward`, **Line**: 431, **Description**: First line should be in imperative mood (perhaps 'Process', not 'Processes')
- **File**: `torch/distributed/pipeline/sync/stream.py`, **Entity**: ``, **Line**: 7, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/stream.py`, **Entity**: ``, **Line**: 7, **Description**: First line should end with a period (not 'h')
- **File**: `torch/distributed/pipeline/sync/stream.py`, **Entity**: `new_stream`, **Line**: 32, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **File**: `torch/distributed/pipeline/sync/stream.py`, **Entity**: `get_device`, **Line**: 75, **Description**: First line should be in imperative mood (perhaps 'Get', not 'Gets')
- **File**: `torch/distributed/pipeline/sync/stream.py`, **Entity**: `wait_stream`, **Line**: 82, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/stream.py`, **Entity**: `wait_stream`, **Line**: 82, **Description**: First line should end with a period (not 't')
- **File**: `torch/distributed/pipeline/sync/stream.py`, **Entity**: `is_cuda`, **Line**: 114, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/distributed/pipeline/sync/_balance/blockpartition.py`, **Entity**: `solve`, **Line**: 19, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/_balance/blockpartition.py`, **Entity**: `solve`, **Line**: 19, **Description**: First line should end with a period (not 'h')
- **File**: `torch/distributed/pipeline/sync/_balance/blockpartition.py`, **Entity**: `solve`, **Line**: 19, **Description**: First line should be in imperative mood (perhaps 'Split', not 'Splits')
- **File**: `torch/distributed/pipeline/sync/_balance/__init__.py`, **Entity**: `balance_by_time`, **Line**: 52, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/_balance/profile.py`, **Entity**: `layerwise_sandbox`, **Line**: 28, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/_balance/profile.py`, **Entity**: `layerwise_sandbox`, **Line**: 28, **Description**: First line should end with a period (not 'n')
- **File**: `torch/distributed/pipeline/sync/_balance/profile.py`, **Entity**: `layerwise_sandbox`, **Line**: 28, **Description**: First line should be in imperative mood (perhaps 'Copy', not 'Copies')
- **File**: `torch/distributed/pipeline/sync/skip/namespace.py`, **Entity**: `Namespace`, **Line**: 18, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/namespace.py`, **Entity**: `Namespace`, **Line**: 18, **Description**: First line should end with a period (not ')')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: ``, **Line**: 8, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: ``, **Line**: 8, **Description**: First line should end with a period (not 'e')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `blue`, **Line**: 37, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `blue`, **Line**: 37, **Description**: First line should end with a period (not 'm')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `blue`, **Line**: 37, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `orange`, **Line**: 56, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `orange`, **Line**: 56, **Description**: First line should end with a period (not 'r')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `orange`, **Line**: 56, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `copy`, **Line**: 74, **Description**: First line should be in imperative mood (perhaps 'Copy', not 'Copies')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `put_tensor`, **Line**: 93, **Description**: First line should be in imperative mood (perhaps 'Store', not 'Stores')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `use_tensor`, **Line**: 126, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `use_tensor`, **Line**: 126, **Description**: First line should end with a period (not 'n')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `use_tensor`, **Line**: 126, **Description**: First line should be in imperative mood (perhaps 'Retrieve', not 'Retrieves')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `put_grad`, **Line**: 141, **Description**: First line should be in imperative mood (perhaps 'Store', not 'Stores')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `use_grad`, **Line**: 145, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `use_grad`, **Line**: 145, **Description**: First line should end with a period (not 's')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `use_grad`, **Line**: 145, **Description**: First line should be in imperative mood (perhaps 'Retrieve', not 'Retrieves')
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `PortalCopy`, **Line**: 207, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/portal.py`, **Entity**: `PortalCopy`, **Line**: 207, **Description**: First line should end with a period (not 'n')
- **File**: `torch/distributed/pipeline/sync/skip/layout.py`, **Entity**: `copy_policy`, **Line**: 40, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/layout.py`, **Entity**: `copy_policy`, **Line**: 40, **Description**: First line should be in imperative mood (perhaps 'Generate', not 'Generates')
- **File**: `torch/distributed/pipeline/sync/skip/layout.py`, **Entity**: `requires_copy`, **Line**: 57, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/layout.py`, **Entity**: `requires_copy`, **Line**: 57, **Description**: First line should end with a period (not 'n')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `SkipTrackerThroughPotals`, **Line**: 53, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `SkipTrackerThroughPotals`, **Line**: 53, **Description**: First line should end with a period (not 'e')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `save`, **Line**: 67, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `save`, **Line**: 67, **Description**: First line should end with a period (not 'n')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `save`, **Line**: 67, **Description**: First line should be in imperative mood (perhaps 'Save', not 'Saves')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `load`, **Line**: 114, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `load`, **Line**: 114, **Description**: First line should end with a period (not 'n')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `load`, **Line**: 114, **Description**: First line should be in imperative mood (perhaps 'Load', not 'Loads')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `copy`, **Line**: 130, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `copy`, **Line**: 130, **Description**: First line should end with a period (not 'n')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `copy`, **Line**: 130, **Description**: First line should be in imperative mood (perhaps 'Copy', not 'Copies')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `use_skip_tracker`, **Line**: 155, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `use_skip_tracker`, **Line**: 155, **Description**: First line should end with a period (not 'a')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `use_skip_tracker`, **Line**: 155, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **File**: `torch/distributed/pipeline/sync/skip/tracker.py`, **Entity**: `current_skip_tracker`, **Line**: 173, **Description**: First line should be in imperative mood (perhaps 'Get', not 'Gets')

cc @carljparker