Skip to content

Commit

Permalink
docs(build): fix typo (open-mmlab#352)
Browse files Browse the repository at this point in the history
* docs(build): add missing build option

* docs(build): add onnx install

* style(doc): trim whitespace

* docs(build): revert install onnx

* docs(build): add ncnn LD_LIBRARY_PATH

* docs(build): fix path error
  • Loading branch information
tpoisonooo authored Apr 14, 2022
1 parent d7adf81 commit 89ce8e2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
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

0 comments on commit 89ce8e2

Please sign in to comment.