Hi,I know how to build a TFLite so file and then import it into Android app. However, have no idea how to build a TFLite so file so that I could debug line by line using lldb or gdb in order to know more details about the core source code of TFLite framework? is there any solution to do that? any instructions?many thanks.
--
You received this message because you are subscribed to the Google Groups "TensorFlow Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tflite+un...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/308bf08a-dc8d-46e1-8673-c5f04d8f331c%40tensorflow.org.
Hi MuJohnny,If you include `-c dbg` in your bazel build command, does that help when debugging?Jared
On Tue, Apr 21, 2020 at 9:53 PM MuJohnny chan <chenm...@gmail.com> wrote:
Hi,--I know how to build a TFLite so file and then import it into Android app. However, have no idea how to build a TFLite so file so that I could debug line by line using lldb or gdb in order to know more details about the core source code of TFLite framework? is there any solution to do that? any instructions?many thanks.
You received this message because you are subscribed to the Google Groups "TensorFlow Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tfl...@tensorflow.org.
To unsubscribe from this group and stop receiving emails from it, send an email to tflite+un...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/ef899c15-de95-4cdf-91c6-50cd7e50be49%40tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/ef899c15-de95-4cdf-91c6-50cd7e50be49%40tensorflow.org.
Do you mean the command should be as below?bazel build -c dbg --copt=-g --jobs=8 --fission / --cxxopt=-gsplit-dwarf //tensorflow/tools/pip_package:build_pip_package
--
You received this message because you are subscribed to the Google Groups "TensorFlow Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tflite+un...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/e4efae09-3315-4965-8d51-d51efd1ad756%40tensorflow.org.
To unsubscribe from this group and stop receiving emails from it, send an email to tfl...@tensorflow.org.
Hi!
I even intentionally crashed my code in order to check the call stack, again nothing
--
You received this message because you are subscribed to the Google Groups "TensorFlow Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tflite+un...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/9e4019ba-8d87-4e47-880c-4e1b9be809c7%40tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/CACq7L5MpRPjRF4NoLULSK9%3DUQO1qBELSZuf88iYPFmAOtUZ6MA%40mail.gmail.com.
@losif, if you are looking to debug TFLite, can you take a step back and make sure your Android Studio allows you to debug native code at all? For example, you can try a NDK sample (like this one) to be sure you AS is set up correctly. Recent AS versions seem to have some issue w/ native debugging.
On Fri, May 1, 2020 at 1:16 AM 'Jared Duke' via TensorFlow Lite <tfl...@tensorflow.org> wrote:
I even intentionally crashed my code in order to check the call stack, again nothingWould you mind attaching the associated logcat that includes the cras? Or pm me directly with that data? Thanks.
On Thu, Apr 30, 2020 at 6:12 AM Iosif Hamlatzis <i.ham...@gmail.com> wrote:
--Hi!I've done all the above and I have the debug version. In order to verify it I created with bazel two builds (release & debug) and for the Android platform I opened the .aar files and see the difference in the size of the shared libraries.I imported the .aar library in my Android project but I haven't found a way to inform Android Studio where the source code and the object files that bazel created, so when I go step by step from Java into c++ code I don't see anything.I even intentionally crashed my code in order to check the call stack, again nothingAny idea?
You received this message because you are subscribed to the Google Groups "TensorFlow Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tfl...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/9e4019ba-8d87-4e47-880c-4e1b9be809c7%40tensorflow.org.
--
You received this message because you are subscribed to the Google Groups "TensorFlow Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tfl...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tflite/CACq7L5MpRPjRF4NoLULSK9%3DUQO1qBELSZuf88iYPFmAOtUZ6MA%40mail.gmail.com.
--thanks,
Wei Wei