Beispiel #1
0
 def get_config(self):
     config = {
         'units':
         self.units,
         'activation':
         activations.serialize(self.activation),
         'use_bias':
         self.use_bias,
         'kernel_initializer':
         initializers.serialize(self.kernel_initializer),
         'bias_initializer':
         initializers.serialize(self.bias_initializer),
         'kernel_regularizer':
         regularizers.serialize(self.kernel_regularizer),
         'bias_regularizer':
         regularizers.serialize(self.bias_regularizer),
         'activity_regularizer':
         regularizers.serialize(self.activity_regularizer),
         'kernel_constraint':
         constraints.serialize(self.kernel_constraint),
         'bias_constraint':
         constraints.serialize(self.bias_constraint)
     }
     base_config = super(DenseTransposeTied, self).get_config()
     return dict(list(base_config.items()) + list(config.items()))
Beispiel #2
0
 def get_config(self):
     config = {
         'epsilon': self.epsilon,
         'mode': self.mode,
         'axis': self.axis,
         'gamma_regularizer':
         regularizers.serialize(self.gamma_regularizer),
         'beta_regularizer': regularizers.serialize(self.beta_regularizer),
         'momentum': self.momentum,
         'r_max_value': self.r_max_value,
         'd_max_value': self.d_max_value,
         't_delta': self.t_delta
     }
     base_config = super(BatchRenormalization, self).get_config()
     return dict(list(base_config.items()) + list(config.items()))
Beispiel #3
0
 def get_config(self):
     config = {
         'axis': self.axis,
         'epsilon': self.epsilon,
         'center': self.center,
         'scale': self.scale,
         'beta_initializer': initializers.serialize(self.beta_initializer),
         'gamma_initializer': initializers.serialize(self.gamma_initializer),
         'beta_regularizer': regularizers.serialize(self.beta_regularizer),
         'gamma_regularizer': regularizers.serialize(self.gamma_regularizer),
         'beta_constraint': constraints.serialize(self.beta_constraint),
         'gamma_constraint': constraints.serialize(self.gamma_constraint)
     }
     base_config = super(InstanceNormalization, self).get_config()
     return dict(list(base_config.items()) + list(config.items()))
Beispiel #4
0
 def get_config(self):
     config = {
         'alpha_initializer':
         initializers.serialize(self.alpha_initializer),
         'activity_regularizer':
         regularizers.serialize(self.activity_regularizer),
         'alpha_constraint':
         constraints.serialize(self.alpha_constraint)
     }
     base_config = super(SparseReLU, self).get_config()
     return dict(list(base_config.items()) + list(config.items()))