Skip to content

Commit 42a38f7

Browse files
Simplify if check
1 parent a95ac80 commit 42a38f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex/_lib/optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def setup(model, optimizer='Adam', learning_rate=1.e-4,
167167
optimizer_options_ = dict((k, v) for k, v in optimizer_options.items())
168168
optimizer_options_.update(weight_decay=wd, clipping=cl, lr=eta)
169169

170-
if network_key in model_optimizer_options.keys():
170+
if network_key in model_optimizer_options:
171171
optimizer_options_.update(
172172
**eval(model_optimizer_options[network_key]))
173173

0 commit comments

Comments
 (0)