Skip to content

Commit

Permalink
Updated import for pytorchcv>=0.0.68
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCossu authored Oct 28, 2024
1 parent d752103 commit 972162c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions avalanche/models/mobilenetv1.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@

try:
from pytorchcv.models.mobilenet import DwsConvBlock
except Exception:
from pytorchcv.models.common import DwsConvBlock
except ImportError:
try:
from pytorchcv.models.common import DwsConvBlock
except ImportError:
from pytorchcv.models.common.conv import DwsConvBlock # pytorchcv >= 0.0.68


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

0 comments on commit 972162c

Please sign in to comment.