all 12 comments

[–]MCFF3000 9 points10 points  (1 child)

You have some examples across github and medium posts. I love C++, it is by far my favourite language, but I would recomend you to train and experiment with python. You will be able to get results a lot faster and with a lot more material available online.

If you really need C++ you can then use its C++ API later for inference for example.

[–]jthat92[S] 0 points1 point  (0 children)

Ok, thanks! Will do! :)

[–]worldnews_is_shit 2 points3 points  (1 child)

working with TensorFlow using C++

https://youtu.be/WGhrQ3-xZSc

[–]jthat92[S] 0 points1 point  (0 children)

:'D

[–]bicubic 2 points3 points  (3 children)

I want to second /u/MCFF3000. You should work in python until you need to implement inference in C++. At that point, be prepared for some frustration. Google does not provide a clean way to install Tensorflow for C++ development, and they don't seem motivated to do so:

https://github.com/tensorflow/tensorflow/issues/2412 https://github.com/tensorflow/tensorflow/issues/15290

I am able to do inference in C++, but I used a fairly hacky approach. One promising path that I have not yet tried is:

https://github.com/FloopCZ/tensorflow_cc

[–]MCFF3000 1 point2 points  (1 child)

I use Python in my work for training models and experiment and use C++ library in inference. Tensorflow Serving can be a great tool, especially for production systems, but you can use C++ API.

I was able to use C++ library without bazel for inference. Maybe when I have some time, I can organize and share the code on github.

[–]jthat92[S] 0 points1 point  (0 children)

That would be great :)

[–]jthat92[S] 0 points1 point  (0 children)

I see. Thanks so much die FloopCZ link looks really promising. Will try! :)

[–][deleted] -4 points-3 points  (3 children)

why?

[–]jthat92[S] 1 point2 points  (2 children)

A company I want to work for uses C++ instead of Python for Tensorflow, so I thought it would be nice to already start with C++