I followed @SimonW’s advice and simply calculated the loss on both individual outputs.  My forward routine returned o1 and o2.  I then calculated loss1 = loss_function(o1, truth1) and loss2 = loss_function(o2,truth2) and summed them up.  loss = loss1+loss2.  You can then run the backward prop on the summed-up loss.