@@ -254,7 +254,7 @@ def __post_init__(self):
254254 " and `out_ff_initialization` as head_config is passed."
255255 )
256256 else :
257- if any ([ p is not None for p in deprecated_args ] ):
257+ if any (p is not None for p in deprecated_args ):
258258 warnings .warn (
259259 "The `out_ff_layers`, `out_ff_activation`, `out_ff_dropoout`, and `out_ff_initialization`"
260260 " arguments are deprecated and will be removed next release."
@@ -263,13 +263,13 @@ def __post_init__(self):
263263 )
264264 # TODO: Remove this once we deprecate the old config
265265 # Fill the head_config using deprecated parameters
266- self .head_config = dict (
267- layers = ifnone (self .out_ff_layers , "" ),
268- activation = ifnone (self .out_ff_activation , "ReLU" ),
269- dropout = ifnone (self .out_ff_dropout , 0.0 ),
270- use_batch_norm = False ,
271- initialization = ifnone (self .out_ff_initialization , "kaiming" ),
272- )
266+ self .head_config = {
267+ " layers" : ifnone (self .out_ff_layers , "" ),
268+ " activation" : ifnone (self .out_ff_activation , "ReLU" ),
269+ " dropout" : ifnone (self .out_ff_dropout , 0.0 ),
270+ " use_batch_norm" : False ,
271+ " initialization" : ifnone (self .out_ff_initialization , "kaiming" ),
272+ }
273273
274274 return super ().__post_init__ ()
275275
0 commit comments