mirror of
https://github.com/wassname/ray.git
synced 2026-07-08 06:26:37 +08:00
Fix bugs in the a3c code template. (#4984)
This commit is contained in:
@@ -127,7 +127,7 @@ global model parameters. The main training script looks like the following.
|
||||
obs = 0
|
||||
|
||||
# Start simulations on actors
|
||||
agents = [Runner(env_name, i) for i in range(num_workers)]
|
||||
agents = [Runner.remote(env_name, i) for i in range(num_workers)]
|
||||
|
||||
# Start gradient calculation tasks on each actor
|
||||
parameters = policy.get_weights()
|
||||
|
||||
Reference in New Issue
Block a user