class_docstr: Scalarizes multple objectives by a linear combination.
class_docstr_tok: ["Scalarizes","multple","objectives","by","a","linear","combination","."]
docstr: Set the scalarization parameter of the LinearScalarizer.
  
  Args:
    weights: A a rank-2 `tf.Tensor` of weights shaped as [batch_size,
      self._num_of_objectives], where `batch_size` should match the batch size
      of the `multi_objectives` passed to the scalarizer call.
  
  Raises:
    ValueError: if the weights tensor is not rank-2, or has a last dimension
    size that does not match `self._num_of_objectives`.
docstr_tok: ["Set","the","scalarization","parameter","of","the","LinearScalarizer",".","Args",":","weights",":","A","a","rank-2","`","tf.Tensor","`","of","weights","shaped","as","[","batch_size",",","self._num_of_objectives","]",",","where","`","batch_size","`","should","match","the","batch","size","of","the","`","multi_objectives","`","passed","to","the","scalarizer","call",".","Raises",":","ValueError",":","if","the","weights","tensor","is","not","rank-2",",","or","has","a","last","dimension","size","that","does","not","match","`","self._num_of_objectives","`","."]
code: def set_parameters(
      self, weights: tf.Tensor
  ):  # pytype: disable=signature-mismatch  # overriding-parameter-count-checks
      """Set the scalarization parameter of the LinearScalarizer.
  
      Args:
        weights: A a rank-2 `tf.Tensor` of weights shaped as [batch_size,
          self._num_of_objectives], where `batch_size` should match the batch size
          of the `multi_objectives` passed to the scalarizer call.
  
      Raises:
        ValueError: if the weights tensor is not rank-2, or has a last dimension
        size that does not match `self._num_of_objectives`.
      """
      self._validate_scalarization_parameters({"weights": weights})
      self._weights = weights
  
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 4 for calling the LinearScalarizer obj's underlying member method code with example usage: obj.set_parameters(weights) without return types