Skip to content

『밑바닥부터 시작하는 딥러닝』(한빛미디어, 2017), 『Deep Learning From Scratch』 (Hanbit media), Modern C++ ≥ 20 migration

License

Notifications You must be signed in to change notification settings

research-note/deep-learning-from-scratch-using-modern-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Learning From Scratch Using Modern C++

Pre install

Use std::execution::par parallel execution. They are used to specify the execution policy of parallel algorithms. so, install tbb!

foo@bar:~$ sudo apt -y install libtbb-dev

Build

Build with Clang-12.

foo@bar:template/for-class$ bazel build --config=clang_config  //main:hello-world

Test

Test with uftrace and valgrind.

Install uftrace and valgrind in ubuntu.

foo@bar:~$ sudo apt -y install uftrace valgrind

uftrace

Test hello-world program with uftrace in terminal.

foo@bar:template/for-class$ uftrace ./bazel-bin/main/hello-world

valgrind

Test hello-world program with valgrind in terminal.

foo@bar:template/for-class$ valgrind ./bazel-bin/main/hello-world

lint

Install cpplint.

foo@bar:~$ sudo apt -y install python3  && pip install cpplint
foo@bar:~$ echo "export PATH=\$PATH:\$HOME/.local/bin" >> .bashrc && source .bashrc

And do lint.

foo@bar:template/for-class$ cpplint main/hello-world.cc

Reference

『밑바닥부터 시작하는 딥러닝』(한빛미디어, 2017)

Installing Bazel on Ubuntu

Bazel Tutorial: Build a C++ Project

Bazel Tutorial: Configure C++ Toolchains

Bazel command line options

About

『밑바닥부터 시작하는 딥러닝』(한빛미디어, 2017), 『Deep Learning From Scratch』 (Hanbit media), Modern C++ ≥ 20 migration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages