Skip to content

Commit

Permalink
debugged DNN.init() to correctly accept 4 arguments when it was previ…
Browse files Browse the repository at this point in the history
…ously missing a 'max_control_cost' argument (#89)
  • Loading branch information
Vigithai authored Jul 10, 2024
1 parent 408e564 commit dd9efe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dynadojo/baselines/dnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ class DNN(TorchBaseClass):
def __init__(self,
embed_dim,
timesteps,
max_control_cost,
**kwargs):
super().__init__(embed_dim, timesteps, **kwargs)
super().__init__(embed_dim, timesteps, max_control_cost, **kwargs)
self.model = torch.nn.Sequential(
torch.nn.Linear(self.embed_dim, embed_dim*10),
torch.nn.ReLU(),
Expand Down

0 comments on commit dd9efe0

Please sign in to comment.