Skip to content

Commit

Permalink
Apply format to runner.py in torch
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni-SM authored Nov 3, 2024
1 parent 0dc36ea commit b65872c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skrl/utils/runner/torch/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from skrl.resources.schedulers.torch import KLAdaptiveLR # noqa
from skrl.trainers.torch import SequentialTrainer, Trainer
from skrl.utils import set_seed
from skrl.utils.model_instantiators.torch import deterministic_model, gaussian_model, shared_model, categorical_model
from skrl.utils.model_instantiators.torch import categorical_model, deterministic_model, gaussian_model, shared_model


class Runner:
Expand All @@ -35,9 +35,9 @@ def __init__(self, env: Union[Wrapper, MultiAgentEnvWrapper], cfg: Mapping[str,
self._class_mapping = {
# model
"gaussianmixin": gaussian_model,
"categoricalmixin": categorical_model,
"deterministicmixin": deterministic_model,
"shared": shared_model,
"categoricalmixin": categorical_model,
# memory
"randommemory": RandomMemory,
# agent
Expand Down

0 comments on commit b65872c

Please sign in to comment.