How to do backward() for a net with multiple outputs?
e.g., in Torch 7 I have a net with the last module an nn.ConcatTable, then I make the gradOutputs a table of tensors and do the net:backward(inputs, gradOutputs) How to do similar things with pytorch? I tried to backward() for each output, but it complained that backward should not be called multiple times?
pengsun
It takes a list of variables and a list of gradients (one for each variable).
colesbury
pengsun
pengsun
Thanks for the report, we’ll fix that!
apaszke