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 d01d7e0 commit 9b7b79e
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 19 deletions.
3 changes: 1 addition & 2 deletions benchmarl/algorithms/iddpg.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, MISSING
from typing import Dict, Optional, Type
from typing import Dict, Optional, Tuple, Type

import torch
from black import Tuple
from tensordict import TensorDictBase
from tensordict.nn import TensorDictModule, TensorDictSequential
from torchrl.data import (
Expand Down
3 changes: 1 addition & 2 deletions benchmarl/algorithms/ippo.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, MISSING
from typing import Dict, Optional, Type
from typing import Dict, Optional, Tuple, Type

import torch
from black import Tuple
from tensordict import TensorDictBase
from tensordict.nn import TensorDictModule, TensorDictSequential
from tensordict.nn.distributions import NormalParamExtractor
Expand Down
3 changes: 1 addition & 2 deletions benchmarl/algorithms/iql.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, MISSING
from typing import Dict, Optional, Type
from typing import Dict, Optional, Type, Tuple

import torch
from black import Tuple
from tensordict import TensorDictBase
from tensordict.nn import TensorDictModule, TensorDictSequential
from torchrl.data import (
Expand Down
3 changes: 1 addition & 2 deletions benchmarl/algorithms/isac.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, MISSING
from typing import Dict, Optional, Type, Union
from typing import Dict, Optional, Tuple, Type, Union

import torch
from black import Tuple
from tensordict import TensorDictBase
from tensordict.nn import NormalParamExtractor, TensorDictModule, TensorDictSequential
from torch.distributions import Categorical
Expand Down
3 changes: 1 addition & 2 deletions benchmarl/algorithms/maddpg.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, MISSING
from typing import Dict, Optional, Type
from typing import Dict, Optional, Tuple, Type

import torch
from black import Tuple
from tensordict import TensorDictBase
from tensordict.nn import TensorDictModule, TensorDictSequential
from torchrl.data import (
Expand Down
3 changes: 1 addition & 2 deletions benchmarl/algorithms/mappo.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, MISSING
from typing import Dict, Optional, Type
from typing import Dict, Optional, Tuple, Type

import torch
from black import Tuple
from tensordict import TensorDictBase
from tensordict.nn import TensorDictModule, TensorDictSequential
from tensordict.nn.distributions import NormalParamExtractor
Expand Down
3 changes: 1 addition & 2 deletions benchmarl/algorithms/masac.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, MISSING
from typing import Dict, Optional, Type, Union
from typing import Dict, Optional, Tuple, Type, Union

import torch
from black import Tuple
from tensordict import TensorDictBase
from tensordict.nn import NormalParamExtractor, TensorDictModule, TensorDictSequential
from torch.distributions import Categorical
Expand Down
3 changes: 1 addition & 2 deletions benchmarl/algorithms/qmix.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, MISSING
from typing import Dict, Optional, Type
from typing import Dict, Optional, Tuple, Type

import torch
from black import Tuple
from tensordict import TensorDictBase
from tensordict.nn import TensorDictModule, TensorDictSequential
from torchrl.data import (
Expand Down
3 changes: 1 addition & 2 deletions benchmarl/algorithms/vdn.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, MISSING
from typing import Dict, Optional, Type
from typing import Dict, Optional, Tuple, Type

import torch
from black import Tuple
from tensordict import TensorDictBase
from tensordict.nn import TensorDictModule, TensorDictSequential
from torchrl.data import (
Expand Down
1 change: 0 additions & 1 deletion examples/simple_hydra_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from benchmarl.environments import task_config_registry
from benchmarl.experiment import Experiment

from benchmarl.hydra_run import load_model_from_hydra_config
from hydra.core.hydra_config import HydraConfig
from omegaconf import DictConfig, OmegaConf
Expand Down

0 comments on commit 9b7b79e

Please sign in to comment.