class_docstr: Base class for all models.
class_docstr_tok: ["Base","class","for","all","models","."]
docstr: Sum all the scalar losses in a dictionary.
docstr_tok: ["Sum","all","the","scalar","losses","in","a","dictionary","."]
code: def sum_losses(self, losses_dict):
      """Sum all the scalar losses in a dictionary."""
      return tf.reduce_sum(list(losses_dict.values()))
  
file_path: ddsp/ddsp/training/models/model.py
imports: import time
  from absl import logging
  import ddsp
  from ddsp.core import copy_if_tf_function
  from ddsp.training import train_util
  import tensorflow
label_desc: Use image node_id 3 for calling the Model obj's underlying member method code with example usage: obj.sum_losses(losses_dict) and returns: tf