class_docstr: Solver for raw tensorflow model.
docstr: Build the output of the model.
  `score` and `input_y` are for loss calculation.
  `preds` and `y_ground_truth` are for metric calculation.
docstr_tok: ["Build","the","output","of","the","model",".","`","score","`","and","`","input_y","`","are","for","loss","calculation",".","`","preds","`","and","`","y_ground_truth","`","are","for","metric","calculation","."]
code: def build_export_output(self, model):  # pylint: disable=no-self-use
      """
      Build the output of the model.
      `score` and `input_y` are for loss calculation.
      `preds` and `y_ground_truth` are for metric calculation.
      """
      if self.tasktype == "Classification":
          model.score = tf.nn.softmax(model.logits, name="score")
          model.preds = tf.argmax(model.logits, axis=-1)
          model.output_dict = {
              "score": model.score,
              "preds": model.preds,
          }
      else:
          raise ValueError(
              "%s is not a valid task type."
              "Must be in `Ranking` and `Classification`."
              % (self.tasktype)
          )
  
file_path: delta/delta/utils/solver/raw_match_solver.py
imports: import delta.compat
  from delta.utils.register import registers
  from delta.utils.solver.raw_solver import RawSolver
label_desc: Use image node_id 3 for calling the RawMatchSolver obj's underlying member method code with example usage: obj.build_export_output(model) without return types