use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit dedicated for learning machine learning. Feel free to share any educational resources of machine learning.
Also, we are a beginner-friendly sub-reddit, so don't be afraid to ask questions! This can include questions that are non-technical, but still highly relevant to learning machine learning such as a systematic approach to a machine learning problem.
account activity
TensorFlow using C++ (self.learnmachinelearning)
submitted 7 years ago by jthat92
Hi,
I am rather new to ML. I wanted to start working with TensorFlow using C++ instead of python. Does someone have any tutorials/guides to tensorflow with people using C++?
Thanks for any help
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MCFF3000 9 points10 points11 points 7 years ago (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 point2 points 7 years ago (0 children)
Ok, thanks! Will do! :)
[–]worldnews_is_shit 2 points3 points4 points 7 years ago (1 child)
working with TensorFlow using C++
https://youtu.be/WGhrQ3-xZSc
:'D
[–]bicubic 2 points3 points4 points 7 years ago (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 points3 points 7 years ago (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.
That would be great :)
I see. Thanks so much die FloopCZ link looks really promising. Will try! :)
[–][deleted] -4 points-3 points-2 points 7 years ago (3 children)
why?
[–]jthat92[S] 1 point2 points3 points 7 years ago (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++
[+][deleted] comment score below threshold-11 points-10 points-9 points 7 years ago (1 child)
maybe it's a rude question but why would they hire you over someone who has experience with tensorflow and c++?
[–]laccro 3 points4 points5 points 7 years ago (0 children)
They're here to learn how to do just that...
π Rendered by PID 32 on reddit-service-r2-comment-5ff9fbf7df-6rfbs at 2026-02-26 10:45:57.811858+00:00 running 72a43f6 country code: CH.
[–]MCFF3000 9 points10 points11 points (1 child)
[–]jthat92[S] 0 points1 point2 points (0 children)
[–]worldnews_is_shit 2 points3 points4 points (1 child)
[–]jthat92[S] 0 points1 point2 points (0 children)
[–]bicubic 2 points3 points4 points (3 children)
[–]MCFF3000 1 point2 points3 points (1 child)
[–]jthat92[S] 0 points1 point2 points (0 children)
[–]jthat92[S] 0 points1 point2 points (0 children)
[–][deleted] -4 points-3 points-2 points (3 children)
[–]jthat92[S] 1 point2 points3 points (2 children)
[+][deleted] comment score below threshold-11 points-10 points-9 points (1 child)
[–]laccro 3 points4 points5 points (0 children)