You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
3 years ago | |
---|---|---|
markdown | 3 years ago | |
.gitignore | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
install_pandoc2.6_ubuntu18.04.sh | 3 years ago |
README.md
Repository for Introductory Information on PyTorch
- author(s): Tom Weber
- date: June 2020
Due to the nature of jupyter notebooks, they don't integrate nicely with git. It is not always straight forward to see what was changed in the commit history. Therefore, I opted to write the notebooks in markdown and then compile them with pandoc into jupyter notebooks.
Documentation for pandoc can be found here.
I have included a install script for pandoc on debian-based systems, as they tend to use outdated packages.
Dependencies
-
pandoc >2.6: to compile markdown files into jupyter notebooks
-
python3: to install the environment and run the jupyter notebooks
-
latex: to convert notebooks into pdf
-
setting up a python requirement is advised
-
python packages:
- jupyter
- torch
- torchvision
Getting Started
- Install the virtual environment and jupyter with
make venv
- Activate the environment
source .venv/bin/activate
- Create the notebooks
make notebooks
- Open the first notebook
jupyter notebook notebooks/0_Intro_Jupyter_Cuda.ipynb
Make commands
The creation of notebooks and the corresponding html and pdf files is handled by Make.
make notebooks
: creates jupyter notebooks in ./notebooks (needs pandoc)make pdf
: creates pdf files of the notebooks in ./pdf (needs jupyter and latex)make html
: creates html files of the notebooks in ./html (needs jupyter)make venv
: create the environment and install jupyter (needs python3)