first pass of train() method in OutputLayer