class_docstr: MultiProblem base class.
class_docstr_tok: ["MultiProblem","base","class","."]
docstr: Compute the maximum number of classes any subtask has.
  
  This is useful for modifying the size of the softmax to include the output
  labels for the classification tasks. Currently, labels from different tasks
  are overloaded.
  
  Returns:
    num: Highest number of output classes in any text classification sub-task
      within this MultiProblem.
docstr_tok: ["Compute","the","maximum","number","of","classes","any","subtask","has",".","This","is","useful","for","modifying","the","size","of","the","softmax","to","include","the","output","labels","for","the","classification","tasks",".","Currently",",","labels","from","different","tasks","are","overloaded",".","Returns",":","num",":","Highest","number","of","output","classes","in","any","text","classification","sub-task","within","this","MultiProblem","."]
code: def get_max_num_classes(self):
      """Compute the maximum number of classes any subtask has.
  
      This is useful for modifying the size of the softmax to include the output
      labels for the classification tasks. Currently, labels from different tasks
      are overloaded.
  
      Returns:
        num: Highest number of output classes in any text classification sub-task
          within this MultiProblem.
      """
      num = 0
      for task in self.task_list:
          if hasattr(task, "num_classes"):
              if num < task.num_classes:
                  num = task.num_classes
  
      return num
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.layers import common_layers
  from tensor2tensor.layers import discretization
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import metrics
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 9 for calling the MultiProblem obj's underlying member method code with example usage: obj.get_max_num_classes() and returns: num