docs: Resolve many typos in the English docs (#20088)

* docs: Fix typo in ONNX parser help: 'tolerence' => 'tolerance'

* docs: Resolve many typos in the English docs

Typos found via 'codespell ./docs/source/en'
This commit is contained in:
Tom Aarsen
2022-11-07 15:19:04 +01:00
committed by GitHub
parent b8112eddec
commit 3222fc645b
21 changed files with 29 additions and 29 deletions

View File

@@ -203,17 +203,17 @@ Example:
```"""
```
3 steps are required to debug the docstring examples :
1. In order to properly run the test, **an extra line has to be added** at the end of the docstring. This can be automatically done on any file using :
3 steps are required to debug the docstring examples:
1. In order to properly run the test, **an extra line has to be added** at the end of the docstring. This can be automatically done on any file using:
```bash
python utils/prepare_for_doc_test.py <path_to_file_or_dir>
```
2. Then, you can use the following line to automatically test every docstring example in the desired file :
2. Then, you can use the following line to automatically test every docstring example in the desired file:
```bash
pytest --doctest-modules <path_to_file_or_dir>
```
3. Once you are done debugging, you need to remove the extra line added in step **1.** by running the follwing :
3. Once you are done debugging, you need to remove the extra line added in step **1.** by running the following:
```bash
python utils/prepare_for_doc_test.py <path_to_file_or_dir> --remove_new_line
```
@@ -1161,7 +1161,7 @@ This helper method creates a copy of the `os.environ` object, so the original re
### Getting reproducible results
In some situations you may want to remove randomness for your tests. To get identical reproducable results set, you
In some situations you may want to remove randomness for your tests. To get identical reproducible results set, you
will need to fix the seed:
```python