Skip to content

Commit

Permalink
Merge branch 'develop' into seb-ff-ippo-only
Browse files Browse the repository at this point in the history
  • Loading branch information
Louay-Ben-nessir authored Nov 13, 2024
2 parents 3fce221 + 6092dc6 commit b6712e2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion mava/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ def get_logger_path(config: DictConfig, logger_type: str) -> str:

def describe(x: ArrayLike) -> Union[Dict[str, ArrayLike], ArrayLike]:
"""Generate summary statistics for an array of metrics (mean, std, min, max)."""

if not isinstance(x, (jax.Array, np.ndarray)) or x.ndim == 0:
return x

Expand Down
1 change: 1 addition & 0 deletions mava/utils/make_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
UoeWrapper,
VectorConnectorWrapper,
async_multiagent_worker,
VectorConnectorWrapper,
)

# Registry mapping environment names to their generator and wrapper classes.
Expand Down
1 change: 0 additions & 1 deletion mava/utils/network_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
_DISCRETE = "discrete"
_CONTINUOUS = "continuous"


def get_action_head(action_types: Union[Spec, Space]) -> Tuple[Dict[str, str], str]:
"""Returns the appropriate action head config based on the environment action_spec."""
if isinstance(action_types, (DiscreteArray, MultiDiscreteArray, Discrete, MultiDiscrete)):
Expand Down

0 comments on commit b6712e2

Please sign in to comment.