Live data from Hacker News

Ask HN: Whats the best way to learn C++ for Deep learning?

news.ycombinator.com

1–10 of 31 posts

Re: Ask HN: Whats the best way to learn C++ for Deep learning?

#3
I think python is generally used for AI and data science stuff, so you'd probably be better off learning that.

That said, I think one of the best ways to learn how to do something is dive right into it. I'm currently in the process of writing a deep learning library in C: https://github.com/siekmanj/sieknet

So if you're dead set on C++, I'd say the best way is to try to build something cool right off the bat.

Re: Ask HN: Whats the best way to learn C++ for Deep learning?

#5
post #3

I think python is generally used for AI and data science stuff, so you'd probably be better off learning that. That said, I think one of the best ways to learn how to do something is dive right into it. I'm currently in the process of writing a deep learning library in C: https://github.com/siekmanj/sieknet So if you're dead set on C++, I'd say the best way is to try to build something cool right off the bat.

I just checked out your github repo and you've got a really cool project going there. What made you decide to start writing it?

Re: Ask HN: Whats the best way to learn C++ for Deep learning?

#9
post #6

You can look at examples from DyNet ( https://dynet.readthedocs.io/en/latest/cpp_basic_tutorial.ht... ) or the C++ Pytorch bindings ( https://pytorch.org/cppdocs/ ). I would strongly recommend python though, as most deep learning work is done with it.

Seconding this. Keep in mind you're not in a "normal" C environment when dealing with GPUs. It's a profoundly negative experience dealing with chip manufacturers (Nvidia) that push proprietary hardware and actively thwart your efforts at producing stable and correct code. It made me realize why Linus had such animosity towards them.

Re: Ask HN: Whats the best way to learn C++ for Deep learning?

#10
I'm not sure how C++ for DL is different from regular C++ so take my advice with a grain of salt.

I took a class under Bjarne Stroustrup and he highly recommended Tour of C++ [0] as the best way to learn modern C++ for someone who already has some programming experience. That and of course, Effective C++[1] by Scott Meyers.

[0] - https://www.amazon.com/Tour-C-Depth/dp/0321958314

[1] - https://www.amazon.com/Effective-Specific-Improve-Programs-D...

Post reply on HN