class_docstr: Scalarizes multple objectives by a linear combination.
class_docstr_tok: ["Scalarizes","multple","objectives","by","a","linear","combination","."]
code: def _scalarize(
      self, transformed_multi_objectives: tf.Tensor
  ) -> tf.Tensor:
      _validate_scalarization_parameter_shape(
          transformed_multi_objectives, {"weights": self._weights}
      )
      return tf.reduce_sum(
          transformed_multi_objectives * self._weights, axis=1
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import copy
  from typing import Callable, Dict, NamedTuple, Optional, Sequence, Union
  import numpy
  import six
  import tensorflow.compat.v2
label_desc: Use image node_id 3 for calling the LinearScalarizer obj's underlying member method code with example usage: obj._scalarize(transformed_multi_objectives) and returns: tf