Skip to content

Commit

Permalink
Merge branch 'Founding-Zero-main' into multipe_inputs_to_models
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Apr 5, 2024
2 parents d56a9c0 + 8f90b62 commit b412572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/unittest/install_dependencies_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ python -m pip install torch

cd ../BenchMARL
pip install -e .
pip uninstal torchrl tensordict
pip uninstall --yes torchrl
pip uninstall --yes tensordict

cd ..
python -m pip install git+https://github.com/pytorch-labs/tensordict.git
Expand Down
6 changes: 2 additions & 4 deletions benchmarl/models/cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,8 @@ def __init__(
device=self.device,
**cnn_net_kwargs,
)
if "_empty_net" in self.cnn.__dict__:
example_net = self.cnn._empty_net
else:
example_net = self.cnn.agent_networks[0]
example_net = self.cnn._empty_net

else:
self.cnn = nn.ModuleList(
[
Expand Down

0 comments on commit b412572

Please sign in to comment.