Fix bug where gradient w.r.t. loss coudln't be retrieved
Fix bug where gradient w.r.t. loss coudln't be retrieved

Peilun-Li/dynet,Peilun-Li/dynet,Abasyoni/dynet,Peilun-Li/dynet,Abasyoni/dynet,Abasyoni/dynet