onnx.md 626 Bytes
Newer Older
limm's avatar
limm committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Introduction of mmcv.onnx module

### <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

### register_extra_symbolics

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

#### Example

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

opset_version = 11
register_extra_symbolics(opset_version)
```

#### Reminder

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

#### FAQs

- None