-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Get reshape error for Tensorflow BERT model #204
Comments
@jayjaywg the input shape:{70,767} is for operator reshape, not the model input. I guess there may be something wrong with the converter. Could you please share the model to @pengwa and @guschmue ? Or log an issue in https://github.com/onnx/tensorflow-onnx instead? |
To convert a tensorflow bert model, follow the instructions here: |
Hi @guschmue |
Sorry, did not get a notify for the question. |
Ok thanks. So perhaps the error I encounter is unrelated to that comment : INFO:tensorflow:Done calling model_fn. TBC. Tks. |
Device Type Check
Hi,
I converted tensorflow BERT model to onnx by https://github.com/onnx/tensorflow-onnx, but when i do inference, i met error as
GENERAL ERROR : c:\agent_work\3\s\onnxruntime\core\providers\cpu\tensor\reshape_helper.h:43 onnxruntime::ReshapeHelper::ReshapeHelper gsl::narrow_cast<int64_t>(input_shape.Size()) == size was false. The input tensor cannot be reshaped to the requested shape. Input shape:{70,767}
the model have three inputs with shape [100,70], i don't know where did 767 come from? can anyone help?
The text was updated successfully, but these errors were encountered: