class_docstr: Class that manages the training loop. See speechbrain.core.Brain.
class_docstr_tok: ["Class","that","manages","the","training","loop",".","See","speechbrain.core.Brain","."]
docstr: Check if CTC is currently active.
  
  Arguments
  ---------
  stage : sb.Stage
      Currently executing stage.
docstr_tok: ["Check","if","CTC","is","currently","active",".","Arguments","--","--","--","--","-","stage",":","sb.Stage","Currently","executing","stage","."]
code: def is_ctc_active(self, stage):
      """Check if CTC is currently active.
  
      Arguments
      ---------
      stage : sb.Stage
          Currently executing stage.
      """
      if stage != sb.Stage.TRAIN:
          return False
      current_epoch = self.hparams.epoch_counter.current
      return current_epoch <= self.hparams.number_of_ctc_epochs
  
file_path: orion/examples/speechbrain_tutorial/train.py
imports: import logging
  import sys
  import speechbrain
  import torch
  from hyperpyyaml import load_hyperpyyaml
  from mini_librispeech_prepare import prepare_mini_librispeech
  from speechbrain.utils.distributed import run_on_main
label_desc: Use image node_id 2 for calling the ASR obj's underlying member method code with example usage: obj.is_ctc_active(stage) and returns: unknown, False