darts icon indicating copy to clipboard operation
darts copied to clipboard

I get an error when I want to change the stirde

Open zhangdan94 opened this issue 7 years ago • 2 comments

When I want to change the output size, I try to change the string size, but the S = sum (self. _ops [offset + j] (h, weights [offset + j]) for j, h in enumerate (states))
shows RuntimeError: The size of tensor a (20) must match the size of tensor B (40) at non-singleton dimension 3 error Is there any suggestions?

zhangdan94 avatar Oct 17 '18 02:10 zhangdan94

Make sure you've adjusted the strides for all operations, including those in FactorizedReduce.

quark0 avatar Oct 18 '18 16:10 quark0

Thanks for your reply. And I'll have a try as you suggested.

zhangdan94 avatar Oct 20 '18 03:10 zhangdan94