take old fashion way to compute loss in softmax cross entropy loss layer