You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2023. It is now read-only.
If your version of PyTorch does not support ONNX model conversion with MaxUnpool, replace every unpool layer definition
30
-
```python
31
-
self.unpool = nn.MaxUnpool2d(2, stride=2)
32
-
```
33
-
to
34
-
```python
35
-
self.unpool = Unpool2d()
36
-
```
37
-
38
-
where `Unpool2d` defined in [unpool.py](./unpool.py). Also, replace op usage from
39
-
40
-
```python
41
-
self.unpool(features, indices)
42
-
```
43
-
to
44
-
```python
45
-
self.unpool.apply(features, indices)
46
-
```
47
-
48
-
See complete example in [export_model.py](./export_model.py).
49
8
50
9
## OpenVINO Model Optimizer extension
51
10
52
-
To create OpenVINO IR, use extra `--extension` flag to specify a path to Model Optimizer extensions that perform graph transformations and register unpooling layer.
11
+
To create OpenVINO IR, use extra `--extension` flag to specify a path to Model Optimizer extensions that perform graph transformations and register custom layers.
0 commit comments