ray.rllib.utils.tf_utils.scope_vars#

ray.rllib.utils.tf_utils.scope_vars(scope: str | tensorflow.compat.v1.VariableScope, trainable_only: bool = False) List[tf.Variable][source]#

Get variables inside a given scope.

Parameters:
  • scope – Scope in which the variables reside.

  • trainable_only – Whether or not to return only the variables that were marked as trainable.

Returns:

The list of variables in the given scope.