Skip to content
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

Faced some issue while calling performInference for mobileBert on Android #205

Open
Nittur opened this issue Dec 30, 2024 · 1 comment
Open

Comments

@Nittur
Copy link

Nittur commented Dec 30, 2024

Abort message: 'terminating due to uncaught exception of type Ort::Exception: Non-zero status code returned while running Gather node. Name:'/model/mobilebert/embeddings/token_type_embeddings/Gather' Status Message: indices element out of data bounds, idx=98784247808 must be within the inclusive range [-2,1]'

Can someone help me understand what it means and where i might have gone wrong? I have rechecked the token input which im giving, it has worked in the PC side for the same onnx models.

Also is it possible to train mobilebert model on android? If anyone has tried this...please provide method used.

@edgchen1
Copy link
Contributor

The error message is referring to a runtime check in a Gather node.

Name:'/model/mobilebert/embeddings/token_type_embeddings/Gather' Status Message: indices element out of data bounds, idx=98784247808 must be within the inclusive range [-2,1]'

The indices element value of 98784247808 is out of range. This value doesn't seem correct. You might try looking into where it is coming from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants