Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7ac785d
amend
matteobettini Mar 29, 2024
9e5f2c4
amend
matteobettini Mar 29, 2024
fc430b5
amend
matteobettini Mar 29, 2024
7fd54a4
amend
matteobettini Mar 29, 2024
982a744
amend
matteobettini Apr 1, 2024
581d5e9
amend
matteobettini Apr 1, 2024
947440e
amend
matteobettini Apr 1, 2024
b87bd44
amend
matteobettini Apr 2, 2024
683e0e8
amend
matteobettini Apr 2, 2024
027dcdc
amend
matteobettini Apr 2, 2024
fa45dbd
up to policy
matteobettini Apr 2, 2024
f5d48f6
up to policy
matteobettini Apr 2, 2024
11e7176
amend
matteobettini Apr 2, 2024
285a1d1
finish?
matteobettini Apr 2, 2024
c744307
Merge branch 'main' into pettingzoo_tuto
matteobettini Apr 9, 2024
56219b0
Merge remote-tracking branch 'origin/main' into pettingzoo_tuto
Apr 17, 2024
b664855
Apply suggestions from code review
matteobettini Apr 22, 2024
31cf18e
review comments and major shortening
matteobettini Apr 22, 2024
e1400c4
amend
matteobettini Apr 22, 2024
0fe1bf9
amend
matteobettini Apr 22, 2024
973a8ad
remove media
matteobettini Apr 22, 2024
f5aff55
amend
matteobettini Apr 22, 2024
d97dd16
amend
matteobettini Apr 22, 2024
967d6fa
make advanced
matteobettini Apr 22, 2024
682c4f7
amend links
matteobettini Apr 22, 2024
b3f7d70
link
matteobettini Apr 22, 2024
8d053b7
amend
matteobettini Apr 22, 2024
9903193
Merge remote-tracking branch 'origin/main' into pettingzoo_tuto
Apr 24, 2024
1b3a536
amend
Apr 24, 2024
de51895
Merge remote-tracking branch 'matteobettini/pettingzoo_tuto' into pet…
Apr 24, 2024
7b5785d
amend
Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ imageio[ffmpeg,pyav]
memory_profiler
pyrender
pytest
vmas==1.2.11
vmas
pettingzoo[mpe]==1.24.3
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Advanced
.. toctree::
:maxdepth: 1

tutorials/multiagent_competitive_ddpg
tutorials/multi_task
tutorials/coding_ddpg
tutorials/coding_dqn
Expand Down
2 changes: 1 addition & 1 deletion torchrl/envs/libs/vmas.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def _get_default_group_map(self, agent_names: List[str]):
group_map = MarlGroupMapType.ALL_IN_ONE_GROUP.get_group_map(agent_names)

# For BC-compatibility rename the "agent" group to "agents"
if "agent" in group_map:
if "agent" in group_map and len(group_map) == 1:
agent_group = group_map["agent"]
group_map["agents"] = agent_group
del group_map["agent"]
Expand Down
5 changes: 5 additions & 0 deletions torchrl/record/loggers/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from pathlib import Path
from typing import Dict, Optional, Sequence, Union

import tensordict.utils
import torch

from tensordict import MemoryMappedTensor
Expand Down Expand Up @@ -196,3 +197,7 @@ def __repr__(self) -> str:

def log_histogram(self, name: str, data: Sequence, **kwargs):
raise NotImplementedError("Logging histograms in cvs is not permitted.")

def print_log_dir(self):
"""Prints the log directory content."""
tensordict.utils.print_directory_tree(self.log_dir)
Loading