void calcGradient (ap_uint <WAxi>* ddr) calculate gradient of current weight Parameters: ddr Traing Data