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

3
### register_extra_symbolics
4
5
6

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

7
#### Example
8
9
10
11
12
13
14
15
16

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

opset_version = 11
register_extra_symbolics(opset_version)
```

RunningLeon's avatar
RunningLeon committed
17
18
19
20
#### Reminder

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

21
#### FAQs
22
23

- None