mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
docs(build): fix typo (#352)
* 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
This commit is contained in:
parent
d7adf815a0
commit
89ce8e20a1
@ -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>
|
||||
|
@ -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
|
||||
```
|
||||
|
@ -181,7 +181,7 @@ class LibVersionChecker(Checker):
|
||||
|
||||
|
||||
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
|
||||
@ -304,7 +304,7 @@ class RewriterRegistry:
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user