File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ def __init__(
240
240
(320 , 1 , 0.0 ),
241
241
],
242
242
}
243
-
244
- self .dropout_rates = drop_rates
243
+ # make sure values are in proper form!
244
+ self .dropout_rates = { int ( key ): float ( value ) for key , value in drop_rates . items ()}
245
245
# 15 is the last layer of the network(including two previous pooling layers)
246
246
# basically specifying the dropout rate for the very last layer to be used after the pooling
247
247
self .last_dropout_rate = self .dropout_rates .get (15 , 0.0 )
Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ def __init__(
240
240
(320 , 1 , 0.0 ),
241
241
],
242
242
}
243
-
244
- self .dropout_rates = drop_rates
243
+ # make sure values are in proper form!
244
+ self .dropout_rates = { int ( key ): float ( value ) for key , value in drop_rates . items ()}
245
245
# 15 is the last layer of the network(including two previous pooling layers)
246
246
# basically specifying the dropout rate for the very last layer to be used after the pooling
247
247
self .last_dropout_rate = self .dropout_rates .get (15 , 0.0 )
You can’t perform that action at this time.
0 commit comments