Error (pytorch?): Expected object of scalar type Long but got scalar type Float for argument #2 'other

Can you help me understand what targs are, and how to change them? I can see several spots in the error stack trace that use “targs”, but when I use the code you provided I get:

NameError: name ‘targs’ is not defined

which makes sense to me because I haven’t defined it elsewhere.

1 Like