Skip to content

Commit 4a4e270

Browse files
Fix model_optimizer_options
1 parent 8c9e7b5 commit 4a4e270

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cortex/_lib/optimizer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ def setup(model, optimizer='Adam', learning_rate=1.e-4,
170170
optimizer_options_.update(weight_decay=wd, clipping=cl, lr=eta)
171171

172172
if network_key in model_optimizer_options.keys():
173-
optimizer_options_.update(**model_optimizer_options)
173+
optimizer_options_.update(
174+
**eval(model_optimizer_options[network_key]))
174175

175176
# Create the optimizer
176177
op = wrap_optimizer(op)

0 commit comments

Comments
 (0)