/// <summary>
 /// Applies the constraint function to weight/bias during training.
 /// </summary>
 public void ApplyConstraint()
 {
     if (constraint != null)
     {
         Data = constraint.Call(Data);
     }
 }