Searched refs:W1_oldgrad (Results 1 – 1 of 1) sorted by relevance
236 double *W0_oldgrad, *W1_oldgrad; in mlp_train_backprop() local264 W1_oldgrad = malloc(W1_size*sizeof(double)); in mlp_train_backprop()276 memset(W1_oldgrad, 0, W1_size*sizeof(double)); in mlp_train_backprop()385 if (W1_oldgrad[i]*W1_grad[i] > 0) in mlp_train_backprop()387 else if (W1_oldgrad[i]*W1_grad[i] < 0) in mlp_train_backprop()394 W1_oldgrad[i] = W1_grad[i]; in mlp_train_backprop()