We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 147f3b1 commit 15713cbCopy full SHA for 15713cb
week03_fast_pipelines/homework/task1/train.py
@@ -21,7 +21,7 @@ def train_epoch(
21
images = images.to(device)
22
labels = labels.to(device)
23
24
- with torch.cuda.amp.autocast():
+ with torch.amp.autocast(device.type, dtype=torch.float16):
25
outputs = model(images)
26
loss = criterion(outputs, labels)
27
# TODO: your code for loss scaling here
week03_fast_pipelines/seminar/requirements.txt
@@ -8,7 +8,7 @@ pandas==1.5.3
8
py-spy==0.3.14
9
torch==2.3.0
10
torchtext
11
-torchvision==0.17.0
+torchvision==0.18.0
12
tqdm==4.64.1
13
vit_pytorch==0.40.2
14
matplotlib==3.8.2
0 commit comments