Understanding Forward Propagation in Neural Networks