parameters: (self, weights)
docstring: Sets the weights of the model.
  
      Arguments:
          weights: Should be a list
              of Numpy arrays with shapes and types matching
              the output of `model.get_weights()`.
docstring_summary: Sets the weights of the model.
docstring_tokens: Sets the weights of the model .
function: def set_weights(self, weights):
      """Sets the weights of the model.
  
      Arguments:
          weights: Should be a list
              of Numpy arrays with shapes and types matching
              the output of `model.get_weights()`.
      """
      if self.model is None:
        self.build()
      self.model.set_weights(weights)
function_tokens: def set_weights ( self , weights ) : if self . model is None : self . build ( ) self . model . set_weights ( weights )