|
|
|
@@ -69,7 +69,7 @@ Classes and functions that can't be converted: |
|
|
|
|
|
|
|
Subclassing from the subclasses of nn.Module |
|
|
|
|
|
|
|
e.g. (code snip from torchvision,models.mobilenet) |
|
|
|
e.g. (code snip from torchvision.models.mobilenet) |
|
|
|
|
|
|
|
```python |
|
|
|
from torch import nn |
|
|
|
@@ -83,12 +83,3 @@ class ConvBNReLU(nn.Sequential): |
|
|
|
nn.ReLU6(inplace=True) |
|
|
|
) |
|
|
|
``` |
|
|
|
|
|
|
|
### Unsupported Situation #3 |
|
|
|
|
|
|
|
Unconventional import naming |
|
|
|
|
|
|
|
e.g. |
|
|
|
```python |
|
|
|
import torch.nn as mm |
|
|
|
``` |