Repository: pytorch
Issue: Fix docstring errors in __init__.py, _tensor_docs.py, _meta_registrations.py, _tensor.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/_tensor.py`, **Entity**: `storage`, **Line**: 222, **Description**: First line should end with a period (not 'e')
- **File**: `torch/_tensor.py`, **Entity**: `storage`, **Line**: 222, **Description**: First line should not be the function's "signature"
- **File**: `torch/_tensor.py`, **Entity**: `backward`, **Line**: 435, **Description**: First line should be in imperative mood (perhaps 'Compute', not 'Computes')
- **File**: `torch/_tensor.py`, **Entity**: `register_hook`, **Line**: 496, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **File**: `torch/_tensor.py`, **Entity**: `is_shared`, **Line**: 611, **Description**: First line should be in imperative mood (perhaps 'Check', not 'Checks')
- **File**: `torch/_tensor.py`, **Entity**: `share_memory_`, **Line**: 620, **Description**: First line should be in imperative mood (perhaps 'Move', not 'Moves')
- **File**: `torch/_tensor.py`, **Entity**: `norm`, **Line**: 646, **Description**: First line should end with a period (not '`')
- **File**: `torch/_tensor.py`, **Entity**: `lu`, **Line**: 674, **Description**: First line should end with a period (not '`')
- **File**: `torch/_tensor.py`, **Entity**: `stft`, **Line**: 701, **Description**: First line should end with a period (not '`')
- **File**: `torch/_tensor.py`, **Entity**: `istft`, **Line**: 747, **Description**: First line should end with a period (not '`')
- **File**: `torch/_tensor.py`, **Entity**: `split`, **Line**: 793, **Description**: First line should end with a period (not '`')
- **File**: `torch/_tensor.py`, **Entity**: `unique`, **Line**: 810, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/_tensor.py`, **Entity**: `__contains__`, **Line**: 991, **Description**: First line should end with a period (not 'r')
- **File**: `torch/_tensor.py`, **Entity**: `storage_type`, **Line**: 1074, **Description**: First line should end with a period (not 'e')
- **File**: `torch/_tensor.py`, **Entity**: `storage_type`, **Line**: 1074, **Description**: First line should not be the function's "signature"
- **File**: `torch/_tensor.py`, **Entity**: `align_to`, **Line**: 1131, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_tensor.py`, **Entity**: `align_to`, **Line**: 1131, **Description**: First line should end with a period (not 'r')
- **File**: `torch/_tensor.py`, **Entity**: `unflatten`, **Line**: 1176, **Description**: First line should end with a period (not 'r')
- **File**: `torch/_tensor.py`, **Entity**: `unflatten`, **Line**: 1176, **Description**: First line should not be the function's "signature"
- **File**: `torch/_tensor.py`, **Entity**: `rename_`, **Line**: 1198, **Description**: No blank lines allowed after function docstring (found 1)
- **File**: `torch/_tensor.py`, **Entity**: `rename`, **Line**: 1213, **Description**: First line should be in imperative mood (perhaps 'Rename', not 'Renames')
- **File**: `torch/_tensor.py`, **Entity**: `__torch_function__`, **Line**: 1281, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_tensor.py`, **Entity**: `__torch_function__`, **Line**: 1281, **Description**: First line should end with a period (not 't')
- **File**: `torch/_tensor.py`, **Entity**: `__torch_function__`, **Line**: 1281, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **File**: `torch/_tensor.py`, **Entity**: `__dlpack__`, **Line**: 1310, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_tensor.py`, **Entity**: `__dlpack__`, **Line**: 1310, **Description**: First line should end with a period (not '_')
- **File**: `torch/_tensor.py`, **Entity**: `__dlpack__`, **Line**: 1310, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **File**: `torch/__init__.py`, **Entity**: ``, **Line**: 2, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: ``, **Line**: 2, **Description**: First line should end with a period (not 'l')
- **File**: `torch/__init__.py`, **Entity**: `SymInt`, **Line**: 244, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `SymInt`, **Line**: 244, **Description**: First line should end with a period (not 'e')
- **File**: `torch/__init__.py`, **Entity**: `SymFloat`, **Line**: 294, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `SymFloat`, **Line**: 294, **Description**: First line should end with a period (not 'e')
- **File**: `torch/__init__.py`, **Entity**: `SymBool`, **Line**: 338, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `SymBool`, **Line**: 338, **Description**: First line should end with a period (not 'e')
- **File**: `torch/__init__.py`, **Entity**: `sym_not`, **Line**: 389, **Description**: No whitespaces allowed surrounding docstring text
- **File**: `torch/__init__.py`, **Entity**: `sym_float`, **Line**: 399, **Description**: No whitespaces allowed surrounding docstring text
- **File**: `torch/__init__.py`, **Entity**: `sym_int`, **Line**: 412, **Description**: No whitespaces allowed surrounding docstring text
- **File**: `torch/__init__.py`, **Entity**: `sym_max`, **Line**: 424, **Description**: No whitespaces allowed surrounding docstring text
- **File**: `torch/__init__.py`, **Entity**: `sym_min`, **Line**: 435, **Description**: No whitespaces allowed surrounding docstring text
- **File**: `torch/__init__.py`, **Entity**: `is_tensor`, **Line**: 515, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/__init__.py`, **Entity**: `is_storage`, **Line**: 535, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/__init__.py`, **Entity**: `set_default_device`, **Line**: 546, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `set_default_device`, **Line**: 546, **Description**: First line should end with a period (not 's')
- **File**: `torch/__init__.py`, **Entity**: `set_default_device`, **Line**: 546, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **File**: `torch/__init__.py`, **Entity**: `set_default_tensor_type`, **Line**: 594, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `set_default_tensor_type`, **Line**: 594, **Description**: First line should end with a period (not 'e')
- **File**: `torch/__init__.py`, **Entity**: `set_default_tensor_type`, **Line**: 594, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **File**: `torch/__init__.py`, **Entity**: `set_default_dtype`, **Line**: 619, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `set_default_dtype`, **Line**: 619, **Description**: First line should end with a period (not '2')
- **File**: `torch/__init__.py`, **Entity**: `set_default_dtype`, **Line**: 619, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **File**: `torch/__init__.py`, **Entity**: `use_deterministic_algorithms`, **Line**: 665, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `use_deterministic_algorithms`, **Line**: 665, **Description**: No whitespaces allowed surrounding docstring text
- **File**: `torch/__init__.py`, **Entity**: `use_deterministic_algorithms`, **Line**: 665, **Description**: First line should end with a period (not '"')
- **File**: `torch/__init__.py`, **Entity**: `use_deterministic_algorithms`, **Line**: 665, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **File**: `torch/__init__.py`, **Entity**: `are_deterministic_algorithms_enabled`, **Line**: 799, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `are_deterministic_algorithms_enabled`, **Line**: 799, **Description**: First line should end with a period (not 'o')
- **File**: `torch/__init__.py`, **Entity**: `are_deterministic_algorithms_enabled`, **Line**: 799, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/__init__.py`, **Entity**: `is_deterministic_algorithms_warn_only_enabled`, **Line**: 805, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `is_deterministic_algorithms_warn_only_enabled`, **Line**: 805, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/__init__.py`, **Entity**: `set_deterministic_debug_mode`, **Line**: 812, **Description**: No blank lines allowed after function docstring (found 1)
- **File**: `torch/__init__.py`, **Entity**: `set_deterministic_debug_mode`, **Line**: 812, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **File**: `torch/__init__.py`, **Entity**: `get_deterministic_debug_mode`, **Line**: 854, **Description**: No blank lines allowed after function docstring (found 1)
- **File**: `torch/__init__.py`, **Entity**: `get_deterministic_debug_mode`, **Line**: 854, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `get_deterministic_debug_mode`, **Line**: 854, **Description**: First line should end with a period (not 'c')
- **File**: `torch/__init__.py`, **Entity**: `get_deterministic_debug_mode`, **Line**: 854, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/__init__.py`, **Entity**: `get_float32_matmul_precision`, **Line**: 868, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `get_float32_matmul_precision`, **Line**: 868, **Description**: First line should end with a period (not 'o')
- **File**: `torch/__init__.py`, **Entity**: `get_float32_matmul_precision`, **Line**: 868, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/__init__.py`, **Entity**: `set_float32_matmul_precision`, **Line**: 874, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **File**: `torch/__init__.py`, **Entity**: `set_warn_always`, **Line**: 919, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `set_warn_always`, **Line**: 919, **Description**: First line should end with a period (not 'y')
- **File**: `torch/__init__.py`, **Entity**: `is_warn_always_enabled`, **Line**: 931, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `is_warn_always_enabled`, **Line**: 931, **Description**: First line should end with a period (not 'o')
- **File**: `torch/__init__.py`, **Entity**: `is_warn_always_enabled`, **Line**: 931, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/__init__.py`, **Entity**: `_check`, **Line**: 968, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `_check`, **Line**: 968, **Description**: First line should end with a period (not 'n')
- **File**: `torch/__init__.py`, **Entity**: `_check_index`, **Line**: 985, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `_check_index`, **Line**: 985, **Description**: First line should end with a period (not 'n')
- **File**: `torch/__init__.py`, **Entity**: `_check_value`, **Line**: 1002, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `_check_value`, **Line**: 1002, **Description**: First line should end with a period (not 'n')
- **File**: `torch/__init__.py`, **Entity**: `_check_type`, **Line**: 1019, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `_check_type`, **Line**: 1019, **Description**: First line should end with a period (not 'n')
- **File**: `torch/__init__.py`, **Entity**: `_check_not_implemented`, **Line**: 1036, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `_check_not_implemented`, **Line**: 1036, **Description**: First line should end with a period (not 'n')
- **File**: `torch/__init__.py`, **Entity**: `_check_tensor_all`, **Line**: 1064, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `_check_tensor_all`, **Line**: 1064, **Description**: First line should end with a period (not 'n')
- **File**: `torch/__init__.py`, **Entity**: `_assert`, **Line**: 1364, **Description**: One-line docstring should fit on one line with quotes (found 2)
- **File**: `torch/__init__.py`, **Entity**: `_assert`, **Line**: 1364, **Description**: First line should be in imperative mood; try rephrasing (found 'A')
- **File**: `torch/__init__.py`, **Entity**: `compiled_with_cxx11_abi`, **Line**: 1430, **Description**: First line should end with a period (not '1')
- **File**: `torch/__init__.py`, **Entity**: `compiled_with_cxx11_abi`, **Line**: 1430, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/__init__.py`, **Entity**: `_register_device_module`, **Line**: 1669, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/__init__.py`, **Entity**: `_register_device_module`, **Line**: 1669, **Description**: First line should end with a period (not '`')
- **File**: `torch/_meta_registrations.py`, **Entity**: `_formula`, **Line**: 1606, **Description**: First line should end with a period (not 't')
- **File**: `torch/_meta_registrations.py`, **Entity**: `_formula`, **Line**: 1606, **Description**: First line should be in imperative mood; try rephrasing (found 'Formula')
- **File**: `torch/_meta_registrations.py`, **Entity**: `_formula_transposed`, **Line**: 1623, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_meta_registrations.py`, **Entity**: `_formula_transposed`, **Line**: 1623, **Description**: First line should end with a period (not 't')
- **File**: `torch/_meta_registrations.py`, **Entity**: `_formula_transposed`, **Line**: 1623, **Description**: First line should be in imperative mood; try rephrasing (found 'Formula')
- **File**: `torch/_tensor_docs.py`, **Entity**: ``, **Line**: 1, **Description**: First line should end with a period (not 's')

cc @carljparker