I tried to use your modified DataParallel but it failed.
It gaves me the error:     assert len(targets) == len(inputs)
I do not know where to debug.
My network returns two items, a list with tensor inside, a tensor.
I also tried split the list before network return,it also failed.so as include the final tensor inside the list.
Can U help me?I followed the direction on your blog.