ray.rllib.evaluation.rollout_worker.RolloutWorker.get_global_vars#
- RolloutWorker.get_global_vars() dict [源代码]#
返回此 RolloutWorker 的当前
self.global_vars
字典。- 返回:
当前
self.global_vars
字典,属于这个 RolloutWorker。
from ray.rllib.evaluation.rollout_worker import RolloutWorker # Create a RolloutWorker. worker = ... global_vars = worker.get_global_vars() print(global_vars)
{"timestep": 424242}