I have a loss variable which takes the output of a network, shaped like 1x181.
I have squeezed the output to make it a 1D tensor. When I call loss.backward, I get RuntimeError: output and gradOutput shapes do not match: output [1 x 1], gradOutput [1 x 1 x 1] at.
Seems similar to this 15 but a bit different. I am on torch 0.3.0