RicardasSim

tensorflow C lib

Apr 9th, 2019
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. /*
  2. gcc -c main.c -o main.o
  3. gcc -o hello-tf main.o -ltensorflow
  4. ./hello-tf
  5. */
  6.  
  7. #include <stdio.h>
  8. #include <tensorflow/c/c_api.h>
  9.  
  10. int main()
  11. {
  12.   printf("\nHello !\nTensorFlow C library version %s\n\n", TF_Version());
  13.   return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment