-
Visit https://pytorch.org/ and select a suitable libtorch version to download.
For example:
# If you need e.g. CUDA 9.0 support, please replace "cpu" with "cu90" in the URL below. wget https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip unzip libtorch-shared-with-deps-latest.zip
-
Place the unzipped
libtorch
folder under the root of the project directory,and pick either one below# list(APPEND CMAKE_PREFIX_PATH "libtorch") list(APPEND Torch_DIR, "libtorch")
ahead of
find_package(Torch REQUIRED)
inCMakeLists.txt
.
Note: For Mac M1 user, besides following the steps above, we'll have several extra steps to be done. Check this.
Note: most of the comments and .tex
files are written in Chinese [ch-CN].
-
Studies of the Watermelon Book: Main entry & PDF
-
Decision tree
-
Studies of Essential Math for AI: Main entry & PDF.
-
Data
-
Singular value decomposition
-
-
Starter
-
Basics
-
Intermediate
-
Advanced
-
Interactive
-
extern
-
utils
-
WatermelonBook [ch-CN]: https://cs.nju.edu.cn/zhouzh/zhouzh.files/publication/MLbook2016.htm
-
PumpkinBook [ch-CN]: https://github.com/datawhalechina/pumpkin-book
-
Essential Math for AI [en-US]: https://www.oreilly.com/library/view/essential-math-for/9781098107628/
-
PyTorch: https://pytorch.org/