Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Bettini <[email protected]>
  • Loading branch information
matteobettini committed Sep 11, 2023
1 parent 5379914 commit e8eed6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_algorithms.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import pytest

from benchmarl.algorithms import algorithm_config_registry
from benchmarl.environments import VmasTask
from benchmarl.experiment import Experiment, ExperimentConfig
from benchmarl.hydra_run import load_experiment_from_hydra_config
from benchmarl.models.common import SequenceModelConfig
from benchmarl.models.mlp import MlpConfig
from hydra import compose, initialize
from torch import nn


@pytest.mark.parametrize("algo_config", algorithm_config_registry.values())
Expand All @@ -15,8 +15,8 @@ def test_all_algos_balance(algo_config, continuous):
task = VmasTask.BALANCE.get_from_yaml()
model_config = SequenceModelConfig(
model_configs=[
MlpConfig(num_cells=[8]),
MlpConfig(num_cells=[4]),
MlpConfig(num_cells=[8], activation_class=nn.Tanh, layer_class=nn.Linear),
MlpConfig(num_cells=[4], activation_class=nn.Tanh, layer_class=nn.Linear),
],
intermediate_sizes=[5],
)
Expand Down

0 comments on commit e8eed6d

Please sign in to comment.