Manual Gradient Descent Optimization