Skip to content

Commit

Permalink
Group setup statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni-SM authored Sep 15, 2024
1 parent 4567e80 commit c15f3ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions skrl/agents/torch/ppo/ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,8 @@ def __init__(self,

self._mixed_precision = self.cfg["mixed_precision"]

# cuda or cpu
# set up automatic mixed precision
self._device_type = torch.device(device).type

# set up scaler
self._scaler = torch.cuda.amp.GradScaler(enabled=self._mixed_precision)

# set up optimizer and learning rate scheduler
Expand Down

0 comments on commit c15f3ce

Please sign in to comment.