Tool Shape Optimization through Backpropagation of Neural Network