Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
UvA DL Tutorials: Fixing typo in torch deterministic setup
  • Loading branch information
phlippe committed Jan 4, 2023
commit 6e7f03e4ebde0f66254504105125d4795e9c434f
2 changes: 1 addition & 1 deletion course_UvA-DL/01-introduction-to-pytorch/.meta.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: "Tutorial 1: Introduction to PyTorch"
author: Phillip Lippe
created: 2021-08-27
updated: 2021-11-29
updated: 2023-01-04
license: CC BY-SA
description: |
This tutorial will give a short introduction to PyTorch basics, and get you setup for writing your own neural networks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@

# Additionally, some operations on a GPU are implemented stochastic for efficiency
# We want to ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

# %% [markdown]
Expand Down
2 changes: 1 addition & 1 deletion course_UvA-DL/02-activation-functions/.meta.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: "Tutorial 2: Activation Functions"
author: Phillip Lippe
created: 2021-08-27
updated: 2021-08-27
updated: 2023-01-04
license: CC BY-SA
description: |
In this tutorial, we will take a closer look at (popular) activation functions and investigate their effect on optimization properties in neural networks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def set_seed(seed):

# Additionally, some operations on a GPU are implemented stochastic for efficiency
# We want to ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

# Fetching the device that will be used throughout this notebook
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: "Tutorial 3: Initialization and Optimization"
author: Phillip Lippe
created: 2021-08-27
updated: 2021-11-29
updated: 2023-01-04
license: CC BY-SA
tags:
- Image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

# Fetching the device that will be used throughout this notebook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
Expand Down
2 changes: 1 addition & 1 deletion course_UvA-DL/06-graph-neural-networks/GNN_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

# %% [markdown]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
Expand Down
2 changes: 1 addition & 1 deletion course_UvA-DL/08-deep-autoencoders/.meta.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: "Tutorial 8: Deep Autoencoders"
author: Phillip Lippe
created: 2021-07-12
updated: 2021-07-12
updated: 2023-01-04
license: CC BY-SA
build: 0
tags:
Expand Down
2 changes: 1 addition & 1 deletion course_UvA-DL/08-deep-autoencoders/Deep_Autoencoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
Expand Down
2 changes: 1 addition & 1 deletion course_UvA-DL/09-normalizing-flows/.meta.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: "Tutorial 9: Normalizing Flows for Image Modeling"
author: Phillip Lippe
created: 2021-06-07
updated: 2021-06-16
updated: 2023-01-04
license: CC BY-SA
build: 0
tags:
Expand Down
2 changes: 1 addition & 1 deletion course_UvA-DL/09-normalizing-flows/NF_image_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

# Fetching the device that will be used throughout this notebook
Expand Down
2 changes: 1 addition & 1 deletion course_UvA-DL/10-autoregressive-image-modeling/.meta.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: "Tutorial 10: Autoregressive Image Modeling"
author: Phillip Lippe
created: 2021-07-12
updated: 2021-07-12
updated: 2023-01-04
license: CC BY-SA
build: 0
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

# Fetching the device that will be used throughout this notebook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
Expand Down
2 changes: 1 addition & 1 deletion course_UvA-DL/12-meta-learning/Meta_Learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
Expand Down
2 changes: 1 addition & 1 deletion course_UvA-DL/13-contrastive-learning/SimCLR.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
pl.seed_everything(42)

# Ensure that all operations are deterministic on GPU (if used) for reproducibility
torch.backends.cudnn.determinstic = True
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False

device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
Expand Down