Skip to content

Commit

Permalink
Update executor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vikcost authored Nov 9, 2024
1 parent 9b5379e commit 6119101
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion wespeaker/utils/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def run_epoch(dataloader, epoch_iter, model, criterion, optimizer, scheduler,
features = spec_aug(features,
**configs['dataset_args']['spec_aug_args'])

with torch.cuda.amp.autocast(enabled=configs['enable_amp']):
outputs = model(features) # (embed_a,embed_b) in most cases
embeds = outputs[-1] if isinstance(outputs, tuple) else outputs
outputs = model.module.projection(embeds, targets)
Expand Down

0 comments on commit 6119101

Please sign in to comment.