Sets the weights values of the network.
        :param weights_values: dictionary with weights for each layer

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.variable_scope(network_name):
            for layer_name in weights_values:
                with tf.variable_scope(layer_name, reuse=True):
                    for param_name, data in weights_values[layer_name].items():
                        try:
                            var = tf.get_variable(param_name)
                            self._session.run(var.assign(data))

                        except ValueError:
                            if not ignore_missing:
                                raise