Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Apr 22, 2024
1 parent b3f7d70 commit 8d053b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tutorials/sphinx-tutorials/multiagent_competitive_ddpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
n_evaders = 1
n_obstacles = 2

use_vmas = True # Set this to True for a great performance speedup
use_vmas = False # Set this to True for a great performance speedup

if not use_vmas:
env = PettingZooEnv(
Expand Down Expand Up @@ -775,7 +775,6 @@ def process_batch(batch: TensorDictBase) -> TensorDictBase:

# Training/collection iterations
for iteration, batch in enumerate(collector):
break
current_frames = batch.numel()
batch = process_batch(batch) # Util to expand done keys if needed
# Loop over groups
Expand Down

0 comments on commit 8d053b7

Please sign in to comment.