cybertronai / autograd-hacks

The Unlicense
151 stars 31 forks source link

RuntimeError: grad can be implicitly created only for scalar outputs #8

Closed slerman12 closed 3 years ago

slerman12 commented 3 years ago

My model outputs a vector, but I actually only need the grad for one scalar in that vector. Is there a way I can get this to work?