original_docstring: Compute the phases in polyphase filter.
  
          (almost directly from torchaudio.compliance.kaldi)
          
docstring: Compute the phases in polyphase filter.
docstring_tokens: Compute the phases in polyphase filter .
code: def _compute_strides(self):
          """Compute the phases in polyphase filter.
  
          (almost directly from torchaudio.compliance.kaldi)
          """
  
          # Compute new unit based on ratio of in/out frequencies
          base_freq = math.gcd(self.orig_freq, self.new_freq)
          input_samples_in_unit = self.orig_freq // base_freq
          self.output_samples = self.new_freq // base_freq
  
          # Store the appropriate stride based on the new units
          self.conv_stride = input_samples_in_unit
          self.conv_transpose_stride = self.output_samples
code_tokens: def _compute_strides ( self ) : base_freq = math . gcd ( self . orig_freq , self . new_freq ) input_samples_in_unit = self . orig_freq // base_freq self . output_samples = self . new_freq // base_freq self . conv_stride = input_samples_in_unit self . conv_transpose_stride = self . output_samples
short_docstring: Compute the phases in polyphase filter.
short_docstring_tokens: Compute the phases in polyphase filter .
comment: """Compute the phases in polyphase filter.
  
          (almost directly from torchaudio.compliance.kaldi)
          """$SEP$# Compute new unit based on ratio of in/out frequencies$SEP$# Store the appropriate stride based on the new units