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

interpreter->Invoke(); Segmentation fault in c++ inference #64608

Closed
sangyo1 opened this issue Mar 27, 2024 · 3 comments
Closed

interpreter->Invoke(); Segmentation fault in c++ inference #64608

sangyo1 opened this issue Mar 27, 2024 · 3 comments
Assignees
Labels
comp:lite TF Lite related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author

Comments

@sangyo1
Copy link

sangyo1 commented Mar 27, 2024

image
image
I am trying to deploy own object detection model in c++.
Once I run the code I am kept getting segmentation fault.
seems like cerr << memcpy(interpreter->typed_input_tensor<uchar>(0), image.data, image.total() * image.elemSize())<< endl; print out 0x7fff8c2fe580
However it doesn't print 5 which is having problem from interpreter->Invoke()
This is what I am getting on debugger
#4 0x00007ffff7cda369 in tflite::optimized_ops::Conv(tflite::ConvParams const&, tflite::RuntimeShape const&, unsigned char const*, tflite::RuntimeShape const&, unsigned char const*, tflite::RuntimeShape const&, int const*, tflite::RuntimeShape const&, unsigned char*, tflite::RuntimeShape const&, unsigned char*, tflite::CpuBackendContext*) ()

#5 0x00007ffff7cdabc9 in void tflite::ops::builtin::conv::EvalQuantized<(tflite::ops::builtin::conv::KernelType)2>(TfLiteContext*, TfLiteNode*, TfLiteConvParams*, tflite::ops::builtin::conv::OpData*, TfLiteTensor*, TfLiteTensor*, TfLiteTensor*, TfLiteTensor*, TfLiteTensor*, TfLiteTensor*) ()

I am getting stuck and I am not sure how to fix this problem

@pkgoogle
Copy link

pkgoogle commented Apr 4, 2024

Hi @sangyo1, can you please share the file or code snippets/text instead, Also please include your steps to compile and execute. Thanks.

@pkgoogle pkgoogle added the stat:awaiting response Status - Awaiting response from author label Apr 4, 2024
Copy link

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label Apr 12, 2024
Copy link

This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:lite TF Lite related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author
Projects
None yet
Development

No branches or pull requests

4 participants