Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
NoB0 committed Dec 6, 2023
1 parent 3c91016 commit 3a87092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ def __init__(
num_timesteps: The number of timesteps. Defaults to None.
n_envs: The number of environments. Defaults to 1.
"""
super().__init__(
input_size, hidden_size, output_size, possible_actions
)
super().__init__(input_size, hidden_size, output_size, possible_actions)

self.n_envs = n_envs

Expand Down Expand Up @@ -67,9 +65,7 @@ def __init__(
self.critic_optimizer, total_iters=num_timesteps
)

def forward(
self, state: torch.Tensor
) -> Tuple[torch.Tensor, torch.Tensor]:
def forward(self, state: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
"""Forward pass.
Args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def __init__(
output_size: The size of the output vector.
possible_actions: The list of possible actions.
"""
super().__init__(
input_size, hidden_size, output_size, possible_actions
)
super().__init__(input_size, hidden_size, output_size, possible_actions)

self.model = torch.nn.Sequential(
torch.nn.Linear(input_size, hidden_size),
Expand Down

0 comments on commit 3a87092

Please sign in to comment.