Research icon indicating copy to clipboard operation
Research copied to clipboard

InvalidArgumentError: The shape of input[0] and input[1] is expected to be equal.But received input[0]'s shape = [-1, 0, 1], input[1]'s shape = [-1, 1, 1, 1].

Open mhillebrand opened this issue 5 years ago • 1 comments

I'm trying to test the GraphSum model with the command ./scripts/predict_graphsum_local_multinews.sh found in the documentation, but I get this error:

Error Message Summary:
----------------------
InvalidArgumentError: The shape of input[0] and input[1] is expected to be equal.But received input[0]'s shape = [-1, 0, 1], input[1]'s shape = [-1, 1, 1, 1].
  [Hint: Expected inputs_dims[i].size() == out_dims.size(), but received inputs_dims[i].size():4 != out_dims.size():3.] at (/paddle/paddle/fluid/operators/concat_op.h:40)
  [operator < concat > error]

I can't really debug this issue in PyCharm because of all the shell scripts involved. Any advice would be greatly appreciated. Thanks.

mhillebrand avatar Oct 26 '20 18:10 mhillebrand

I figured out that if I disable trigram blocking, this problem goes away.

😞

mhillebrand avatar Oct 27 '20 04:10 mhillebrand