Skip to content

Commit

Permalink
fix TorchModel mistakenly assigning InArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
MFA-X-AI authored Oct 7, 2024
1 parent 20d2d16 commit 8a49889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_nn_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TorchModel(Component):

model_in: InArg[list]
loss_in: InArg[str]
learning_rate = InArg[float]
learning_rate: InArg[float]
optimizer_in: InArg[str]
should_flatten: InArg[bool]
model_config: OutArg[nn.Module]
Expand Down Expand Up @@ -357,4 +357,4 @@ def execute(self, ctx) -> None:
if self.model_in.value is None:
self.model_out.value = [nn.Dropout(prob)]
else:
self.model_out.value = self.model_in.value + [nn.Dropout(prob)]
self.model_out.value = self.model_in.value + [nn.Dropout(prob)]

0 comments on commit 8a49889

Please sign in to comment.