-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to fix when convert model mT5 with max_length = 512 #44
Comments
I have the same problem |
def sequence_padding(inputs, length=None, padding=0):
|
这些代码怎么用呀? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2022-03-10 09:07:54.967587868 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {batch,sequence,2,64} does not match actual shape of {5,12,21,64} for output output_past_key_values
2022-03-10 09:07:54.969066346 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 566
2022-03-10 09:07:54.973768695 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 710
2022-03-10 09:07:54.978314803 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 854
2022-03-10 09:07:54.982609990 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 998
2022-03-10 09:07:54.986836355 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 1142
2022-03-10 09:07:54.991021618 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 1286
2022-03-10 09:07:54.995182350 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 1430
2022-03-10 09:07:54.999290875 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 1574
2022-03-10 09:07:55.003348281 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 1718
2022-03-10 09:07:55.007545242 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 1862
2022-03-10 09:07:55.011838101 [W:onnxruntime:, execution_frame.cc:811 VerifyOutputSizes] Expected shape from model of {1,12,2,64} does not match actual shape of {5,12,21,64} for output 2006
I have onnx==1.11.0 and onnxruntime==1.10.0
The text was updated successfully, but these errors were encountered: