Skip to content

Commit 8610a21

Browse files
authored
When import the library, appears an error said that cant import DwsConvBlock.
The problem is at "mobilenetv1.py" file at line 25. There is import "from pytorchcv.models.common import DwsConvBlock". The problem is that in common, there is not DwsConvBlock. Instead "DwsConvBlock" is in "pytorchcv.models.common.conv" . So to solve the problem must change line 25 with "from pytorchcv.models.common.conv import DwsConvBlock"
1 parent d752103 commit 8610a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avalanche/models/mobilenetv1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
try:
2323
from pytorchcv.models.mobilenet import DwsConvBlock
2424
except Exception:
25-
from pytorchcv.models.common import DwsConvBlock
25+
from pytorchcv.models.common.conv import DwsConvBlock
2626

2727

2828
def remove_sequential(network: nn.Module, all_layers: List[nn.Module]):

0 commit comments

Comments
 (0)