Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(build): fix typo #352

Merged
merged 6 commits into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/en/build/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ Make sure to enable <code>-DNCNN_PYTHON=ON</code> in your build command. <br>
<pre><code>
cd ncnn
export NCNN_DIR=$(pwd)
export LD_LIBRARY_PATH=${NCNN_DIR}/build/install/lib/:$LD_LIBRARY_PATH
</code></pre>
3. Install pyncnn
<pre><code>
Expand Down
12 changes: 11 additions & 1 deletion docs/en/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,17 @@
`python fixNvPe.py --input=C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\lib\*.dll`

You can find your pytorch installation path with:
``` python
```python
import torch
print(torch.__file__)
```

### Pip
- pip installed package but could not `import` them.

Make sure your are using conda pip.
```bash
$ which pip
# /path/to/.local/bin/pip
/path/to/miniconda3/lib/python3.9/site-packages/pip
```
4 changes: 2 additions & 2 deletions mmdeploy/core/rewriters/rewriter_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def check(self, env: Dict) -> bool:


class RewriterRegistry:
"""A registry that recoreds rewrite objects.
"""A registry that records rewrite objects.

Logically this class is a two-dimensional table which maintains an object
list for each backend. The records can be inserted to this table through
Expand Down Expand Up @@ -304,7 +304,7 @@ def register_object(self,
name (str): The import path to access the function/module.
backend (str): The rewriter will be activated on which backend.
ir (IR): The rewriter will be activated on which ir.
extra_chekcers (None | Checker | List[Checker]): Other requirements
extra_checkers (None | Checker | List[Checker]): Other requirements
for the rewriters. Default to `None`.

Returns:
Expand Down