Skip to content

Commit

Permalink
added missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
MLRichter committed Mar 27, 2023
1 parent bdcb4a1 commit 04ef70f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions delve/torchcallback.py
Expand Up @@ -6,7 +6,7 @@

import torch
from torch.nn.functional import interpolate
from torch.nn.modules import LSTM
from torch.nn.modules import LSTM, Module
from torch.nn.modules.conv import Conv2d
from torch.nn.modules.linear import Linear

Expand Down Expand Up @@ -174,8 +174,8 @@ class SaturationTracker(object):
def __init__(self,
savefile: str,
save_to: Union[str, delve.writers.AbstractWriter],
modules: torch.nn.Module,
layer_filter: Callable[[Dict[str, nn.Module]], Dict[str, nn.Module]] = lambda x: x,
modules: Module,
layer_filter: Callable[[Dict[str, Module]], Dict[str, Module]] = lambda x: x,
writer_args: Optional[Dict[str, Any]] = None,
log_interval=1,
max_samples=None,
Expand Down

0 comments on commit 04ef70f

Please sign in to comment.