Skip to content

Commit

Permalink
Update i6_models/parts/frontend/generic_frontend.py
Browse files Browse the repository at this point in the history
Co-authored-by: SimBe195 <[email protected]>
  • Loading branch information
Judyxujj and SimBe195 authored Nov 10, 2023
1 parent ec3356f commit 052a4a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions i6_models/parts/frontend/generic_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ def forward(self, tensor: torch.Tensor, sequence_mask: torch.Tensor) -> Tuple[to
# and add a dim
tensor = tensor[:, None, :, :] # [B,C=1,T,F]

for i in range(len(self.cfg.layer_ordering)):
layer = self.frontend_layers[i]
for layer in self.frontend_layers:
tensor = layer(tensor)

if isinstance(layer, nn.Conv2d) or isinstance(layer, nn.MaxPool2d):
Expand Down

0 comments on commit 052a4a0

Please sign in to comment.