public override ConfigDict GetConfig() { var config = new ConfigDict { { "alpha_initializer", Initializer.Serialize(this.alpha_initializer) }, { "alpha_regularizer", Regularizer.Serialize(this.alpha_regularizer) }, { "alpha_constraint", Constraint.Serialize(this.alpha_constraint) }, { "shared_axes", this.shared_axes } }; var base_config = base.GetConfig(); base_config.Update(config); return(base_config); }
public override ConfigDict GetConfig() { var config = new ConfigDict { { "units", this.units }, { "activation", Activations.Serialize(this.activation) }, { "use_bias", this.use_bias }, { "kernel_initializer", Initializer.Serialize(this.kernel_initializer) }, { "bias_initializer", Initializer.Serialize(this.bias_initializer) }, { "kernel_regularizer", Regularizer.Serialize(this.kernel_regularizer) }, { "bias_regularizer", Regularizer.Serialize(this.bias_regularizer) }, { "activity_regularizer", Regularizer.Serialize(this.activity_regularizer) }, { "kernel_constraint", Constraint.Serialize(this.kernel_constraint) }, { "bias_constraint", Constraint.Serialize(this.bias_constraint) } }; var base_config = base.GetConfig(); base_config.Update(config); return(base_config); }