Skip to content

Commit 8a49889

Browse files
authored
fix TorchModel mistakenly assigning InArgs
1 parent 20d2d16 commit 8a49889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch_nn_layers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TorchModel(Component):
2020

2121
model_in: InArg[list]
2222
loss_in: InArg[str]
23-
learning_rate = InArg[float]
23+
learning_rate: InArg[float]
2424
optimizer_in: InArg[str]
2525
should_flatten: InArg[bool]
2626
model_config: OutArg[nn.Module]
@@ -357,4 +357,4 @@ def execute(self, ctx) -> None:
357357
if self.model_in.value is None:
358358
self.model_out.value = [nn.Dropout(prob)]
359359
else:
360-
self.model_out.value = self.model_in.value + [nn.Dropout(prob)]
360+
self.model_out.value = self.model_in.value + [nn.Dropout(prob)]

0 commit comments

Comments
 (0)