Set phase to TRAIN when performing backward pass