onnx.md 626 Bytes
Newer Older
RunningLeon's avatar
RunningLeon committed
1
## Introduction of mmcv.onnx module
2

3
4
5
6
7
### <span style="color:red">DeprecationWarning</span>

ONNX support will be deprecated in the future.
Welcome to use the unified model deployment toolbox MMDeploy: https://github.com/open-mmlab/mmdeploy

8
### register_extra_symbolics
9
10
11

Some extra symbolic functions need to be registered before exporting PyTorch model to ONNX.

12
#### Example
13
14
15
16
17
18
19
20
21

```python
import mmcv
from mmcv.onnx import register_extra_symbolics

opset_version = 11
register_extra_symbolics(opset_version)
```

RunningLeon's avatar
RunningLeon committed
22
23
24
25
#### Reminder

- *Please note that this feature is experimental and may change in the future.*

26
#### FAQs
27
28

- None