bad argument #2 to 'add' (sizes do not match at /torch-addons/cutorch/lib/THC/generated/../generic/THCTensorMathPointwise.cu:269)
krsandeep98 opened this issue · comments
visdial/encoders/mn-att-ques-im-hist.lua
Line 74 in 3ffb761
This is the error which I am getting on running train.lua with mn-att-ques-im-hist encoder and gen decoder. And this error corresponds to the encoder forward pass in the forwardBackward function.
I am able to get it running by changing the params.imgFeatureSize (whose value is 4096) in the above-mentioned line to 512.
@abhshkdz
I changed the parameters directly in the opts.lua file and there the value of imgSpatialSize was 14 and imgFeatureSize was 4096.
It might be easier to use something like this instead:
th train.lua -encoder mn-att-ques-im-hist -decoder gen -imgSpatialSize 14 -imgFeatureSize 512