garage.tf.misc.tensor_utils module¶
-
get_target_ops
(variables, target_variables, tau=None)[source]¶ Get target variables update operations.
In RL algorithms we often update target network every n steps. This function returns the tf.Operation for updating target variables (denoted by target_var) from variables (denote by var) with fraction tau. In other words, each time we want to keep tau of the var and add (1 - tau) of target_var to var.
Parameters: