Skip to content

Commit 557a04d

Browse files
committed
update exercise.
1 parent f18de05 commit 557a04d

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

data/weights.pkl

-6.49 MB
Binary file not shown.

data/weights.pth

1.49 MB
Binary file not shown.

src/input_opt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def forward(self, x):
3333

3434

3535
if __name__ == "__main__":
36-
with open("weights.pth", "rb") as file:
36+
with open("./data/weights.pth", "rb") as file:
3737
weights = torch.load(file)
3838

3939
net = CNN()
@@ -47,4 +47,4 @@ def forward_pass(x):
4747

4848
get_grads = grad(forward_pass)
4949

50-
# TODO: Optimize an input to maximize that output.
50+
# TODO: Optimize an input to maximize that output.

0 commit comments

Comments
 (0)