Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 774 Bytes

README.md

File metadata and controls

25 lines (23 loc) · 774 Bytes

pytorch-hooks-tutorial

A crash course on PyTorch hooks. A companion for my Medium post at LINK TO BE INSERTED LATER

Running the notebook

  1. Create a new virtual environment.
virtualenv /path/to/venv --python /path/to/python3

The path of your Python3 interpreter can be found by

which python3
  1. Activate the virtual environment and install the required packages.
source /path/to/venv/bin/activate
pip install -r requirements.txt
  1. Install a Jupyter kernel inside the virtual environment.
ipython kernel install --user --name=name-of-your-venv
  1. Run Jupyter notebook and execute the notebook.

Attributions

Photo of cat by Manja Vitolic on Unsplash.