File tree 3 files changed +4
-6
lines changed
3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ def serialize(initializer):
84
84
def deserialize (config , custom_objects = None ):
85
85
return tf .keras .utils .deserialize_keras_object (
86
86
config ,
87
- module_objects = globals (),
88
87
custom_objects = custom_objects ,
89
88
printable_module_name = 'constraints' )
90
89
Original file line number Diff line number Diff line change @@ -138,8 +138,7 @@ def __init__(self,
138
138
distribution: Random distribution to use. One of "truncated_normal", or
139
139
"untruncated_normal".
140
140
seed: A Python integer. Used to create random seeds. See
141
- `tf.set_random_seed`
142
- for behavior.
141
+ `tf.set_random_seed` for behavior.
143
142
144
143
Raises:
145
144
ValueError: In case of an invalid value for the "scale", mode" or
@@ -529,7 +528,9 @@ def get_config(self):
529
528
530
529
531
530
class TrainableHeNormal (TrainableNormal ):
532
- """Trainable normal initialized per He et al. 2015, given a ReLU nonlinearity.
531
+ """Trainable normal initialized per He et al.
532
+
533
+ 2015, given a ReLU nonlinearity.
533
534
534
535
The distribution is initialized to a Normal scaled by `sqrt(2 / fan_in)`,
535
536
where `fan_in` is the number of input units. A ReLU nonlinearity is assumed
@@ -857,7 +858,6 @@ def serialize(initializer):
857
858
def deserialize (config , custom_objects = None ):
858
859
return tf .keras .utils .deserialize_keras_object (
859
860
config ,
860
- module_objects = globals (),
861
861
custom_objects = custom_objects ,
862
862
printable_module_name = 'initializers' )
863
863
Original file line number Diff line number Diff line change @@ -394,7 +394,6 @@ def serialize(initializer):
394
394
def deserialize (config , custom_objects = None ):
395
395
return tf .keras .utils .deserialize_keras_object (
396
396
config ,
397
- module_objects = globals (),
398
397
custom_objects = custom_objects ,
399
398
printable_module_name = 'regularizers' )
400
399
You can’t perform that action at this time.
0 commit comments