https://github.com/cosmic-cortex/pytorch-hooks-tutorial
A crash course on PyTorch hooks
https://github.com/cosmic-cortex/pytorch-hooks-tutorial
Last synced: about 1 year ago
JSON representation
A crash course on PyTorch hooks
- Host: GitHub
- URL: https://github.com/cosmic-cortex/pytorch-hooks-tutorial
- Owner: cosmic-cortex
- License: mit
- Created: 2020-04-29T07:17:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-29T07:32:48.000Z (about 6 years ago)
- Last Synced: 2025-03-30T17:11:07.784Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 1.93 MB
- Stars: 40
- Watchers: 4
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```
2. Activate the virtual environment and install the required packages.
```
source /path/to/venv/bin/activate
pip install -r requirements.txt
```
3. Install a Jupyter kernel inside the virtual environment.
```
ipython kernel install --user --name=name-of-your-venv
```
4. Run Jupyter notebook and execute the notebook.
## Attributions
Photo of cat by [Manja Vitolic](https://unsplash.com/@madhatterzone) on [Unsplash](https://unsplash.com/photos/gKXKBY-C-Dk).