|
29 | 29 | from nemo.collections.asr.metrics.bleu import BLEU |
30 | 30 | from nemo.collections.asr.metrics.wer import WER |
31 | 31 | from nemo.collections.asr.models.hybrid_rnnt_ctc_bpe_models import EncDecHybridRNNTCTCBPEModel |
32 | | -from nemo.collections.asr.parts.mixins import ASRBPEMixin, ASRTranscriptionMixin, TranscribeConfig |
| 32 | +from nemo.collections.asr.parts.mixins import ASRTranscriptionMixin, TranscribeConfig |
33 | 33 | from nemo.collections.asr.parts.mixins.transcription import TranscriptionReturnType |
34 | 34 | from nemo.collections.asr.parts.preprocessing.segment import ChannelSelectorType |
35 | 35 | from nemo.collections.asr.parts.submodules.ctc_decoding import CTCBPEDecoding, CTCBPEDecodingConfig |
@@ -634,11 +634,6 @@ def training_step(self, batch, batch_nb): |
634 | 634 | # Add auxiliary losses, if registered |
635 | 635 | loss_value = self.add_auxiliary_losses(loss_value) |
636 | 636 |
|
637 | | - # Reset access registry |
638 | | - # from RNNT training |
639 | | - # if AccessMixin.is_access_enabled(): |
640 | | - # AccessMixin.reset_registry(self) |
641 | | - |
642 | 637 | tensorboard_logs = { |
643 | 638 | 'learning_rate': self._optimizer.param_groups[0]['lr'], |
644 | 639 | 'global_step': torch.tensor(self.trainer.global_step, dtype=torch.float32), |
@@ -669,11 +664,6 @@ def training_step(self, batch, batch_nb): |
669 | 664 | # Add auxiliary losses, if registered |
670 | 665 | loss_value = self.add_auxiliary_losses(loss_value) |
671 | 666 |
|
672 | | - # Reset access registry |
673 | | - # from RNNT training |
674 | | - # if AccessMixin.is_access_enabled(): |
675 | | - # AccessMixin.reset_registry(self) |
676 | | - |
677 | 667 | tensorboard_logs = { |
678 | 668 | 'learning_rate': self._optimizer.param_groups[0]['lr'], |
679 | 669 | 'global_step': torch.tensor(self.trainer.global_step, dtype=torch.float32), |
|
0 commit comments