Skip to content

Commit

Permalink
Conformer specify conv_layers type
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Apr 4, 2023
1 parent eed07b5 commit 6182491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nn/conformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(
self.pool_sizes = pool_sizes
self.activation = activation

self.conv_layers = nn.ModuleList()
self.conv_layers: nn.ModuleList[nn.Conv2d] = nn.ModuleList()
if strides is None:
strides = [1] * len(out_dims)
assert len(out_dims) == len(filter_sizes) == len(strides) > 0
Expand Down

0 comments on commit 6182491

Please sign in to comment.