You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.10.0baz
Custom code
Yes
OS platform and distribution
Ubuntu 22.04.4 LTS
Mobile device
No response
Python version
No response
Bazel version
bazel 6.5.0
GCC/compiler version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I built the tflite library using bazel and i'm just trying to test if it work but can't compile
Standalone code to reproduce the issue
#include <stdio.h>#include "tensorflow/lite/c/c_api.h"
int main() {
printf("Hello from TensorFlow C library version %s\n", TfLiteExtensionApisVersion());
return 0;
}
Relevant log output
gcc -o hello_tf hello_tf.c -I. -Llib/tensorflow/lite -ltensorflowlite
/usr/bin/ld: /tmp/ccynBol8.o: infunction`main':
hello_tf.c:(.text+0x9): undefined reference to `TfLiteExtensionApisVersion'collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered:
1-Clone the TensorFlow Lite repository.
2-Build the library using this command: bazel build -c opt //tensorflow/lite/c:libtensorflowlite_c.so.
3-Copy libtensorflowlite_c.so to your folder from bazel-bin/tensorflow/lite/c/.
4-Compile: gcc -o hello_tf hello_tf.c -I. -Llib/tensorflow/lite -ltensorflowlite_c.
5-Copy and paste your dynamic library to /usr/lib: sudo cp lib/tensorflow/lite/libtensorflowlite_c.so /usr/lib.
6-Almost done: ./hello_tf.
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.10.0baz
Custom code
Yes
OS platform and distribution
Ubuntu 22.04.4 LTS
Mobile device
No response
Python version
No response
Bazel version
bazel 6.5.0
GCC/compiler version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I built the tflite library using bazel and i'm just trying to test if it work but can't compile
Standalone code to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: