class_docstr: Step-by-step decoder with LM fusion.
class_docstr_tok: ["Step-by-step","decoder","with","LM","fusion","."]
docstr: Returns number of hypothesis times batch_size.
  
  This function can be overridden by a child class if the total number of
  hyps are to be computed in a different way, e.g., when the format of inputs
  change.
  Args:
    source_encs: A Tensor of [time, batch, dim] with source encodings.
    num_hyps_per_beam: Int, the number of hypothesis per example in the beam.
  Returns:
    A Tensor with value batch * num_hyps_per_beam.
docstr_tok: ["Returns","number","of","hypothesis","times","batch_size",".","This","function","can","be","overridden","by","a","child","class","if","the","total","number","of","hyps","are","to","be","computed","in","a","different","way",",","e.g.",",","when","the","format","of","inputs","change",".","Args",":","source_encs",":","A","Tensor","of","[","time",",","batch",",","dim","]","with","source","encodings",".","num_hyps_per_beam",":","Int",",","the","number","of","hypothesis","per","example","in","the","beam",".","Returns",":","A","Tensor","with","value","batch","*","num_hyps_per_beam","."]
code: def _GetNumHypsForBeamSearch(self, source_encs, num_hyps_per_beam):
      """Returns number of hypothesis times batch_size.
  
      This function can be overridden by a child class if the total number of
      hyps are to be computed in a different way, e.g., when the format of inputs
      change.
      Args:
        source_encs: A Tensor of [time, batch, dim] with source encodings.
        num_hyps_per_beam: Int, the number of hypothesis per example in the beam.
      Returns:
        A Tensor with value batch * num_hyps_per_beam.
      """
      return tf.shape(source_encs)[1] * num_hyps_per_beam
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import math
  import lingvo.compat
  from lingvo.core import attention
  from lingvo.core import base_decoder
  from lingvo.core import base_layer
  from lingvo.core import cluster_factory
  from lingvo.core import layers
  from lingvo.core import plot
  from lingvo.core import py_utils
  from lingvo.core import recurrent
  from lingvo.core import rnn_cell
  from lingvo.core import summary_utils
  from lingvo.core import symbolic
  from lingvo.tasks.asr import contextualizer_base
  from lingvo.tasks.asr import decoder_utils
  from lingvo.tasks.asr import fusion
  from matplotlib import font_manager
  import six
  from six.moves import range
label_desc: Use image node_id 5 for calling the AsrDecoder obj's underlying member method code with example usage: obj._GetNumHypsForBeamSearch(source_encs, num_hyps_per_beam) and returns: unknown