Skip to content

Commit 2716dcd

Browse files
committed
Merge pull request keras-team#1963 from jnphilipp/fix_config
Fixed get_config for SReLU.
2 parents fef9de0 + 775664f commit 2716dcd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

keras/layers/advanced_activations.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,7 @@ def get_output(self, train=False):
280280

281281
def get_config(self):
282282
return {'name': self.__class__.__name__,
283-
'input_shape': self.input_shape,
284-
't_left_init': self.t_left_init,
285-
'a_left_init': self.a_left_init,
286-
't_right_init': self.t_right_init,
287-
'a_right_init': self.a_right_init}
283+
't_left_init': self.t_left_init.__name__,
284+
'a_left_init': self.a_left_init.__name__,
285+
't_right_init': self.t_right_init.__name__,
286+
'a_right_init': self.a_right_init.__name__}

0 commit comments

Comments
 (0)