Yes it is what I want! Thanks!
Hope this can be added to tutorial/examples as this kind of backward() is common for multi-task learning. I thought I had to write code like variable.backward() as the deep learning example 346.