docstr: Sets the weights values of the network.
  :param weights_values: dictionary with weights for each layer
docstr_tok: ["Sets","the","weights","values","of","the","network",".",":","param","weights_values",":","dictionary","with","weights","for","each","layer"]
code: def set_weights(self, weights_values: dict, ignore_missing=False):
      """
      Sets the weights values of the network.
      :param weights_values: dictionary with weights for each layer
      """
      network_name = self.__class__.__name__.lower()
  
      with tf.compat.v1.variable_scope(network_name):
          for layer_name in weights_values:
              with tf.compat.v1.variable_scope(layer_name, reuse=True):
                  for param_name, data in weights_values[
                      layer_name
                  ].items():
                      try:
                          var = tf.compat.v1.get_variable(
                              param_name, use_resource=False
                          )
                          self._session.run(var.assign(data))
  
                      except ValueError:
                          if not ignore_missing:
                              raise
  
file_path: mtcnn/mtcnn/network.py
imports: import tensorflow
label_desc: Use image node_id 6 for calling the Network obj's underlying member method code with example usage: obj.set_weights(weights_values, ignore_missing) without return types