I have a network like this:
How can I update Ebedding and CNN layer according loss1 and update parameter W according loss2?