File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ def __init__(
240240 (320 , 1 , 0.0 ),
241241 ],
242242 }
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 ()}
245245 # 15 is the last layer of the network(including two previous pooling layers)
246246 # basically specifying the dropout rate for the very last layer to be used after the pooling
247247 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__(
240240 (320 , 1 , 0.0 ),
241241 ],
242242 }
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 ()}
245245 # 15 is the last layer of the network(including two previous pooling layers)
246246 # basically specifying the dropout rate for the very last layer to be used after the pooling
247247 self .last_dropout_rate = self .dropout_rates .get (15 , 0.0 )
You can’t perform that action at this time.
0 commit comments