projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc29209
)
Update.
author
François Fleuret
<francois@fleuret.org>
Wed, 18 Sep 2024 13:26:39 +0000
(15:26 +0200)
committer
François Fleuret
<francois@fleuret.org>
Wed, 18 Sep 2024 13:26:39 +0000
(15:26 +0200)
main.py
patch
|
blob
|
history
diff --git
a/main.py
b/main.py
index
edc366a
..
6b137bf
100755
(executable)
--- a/
main.py
+++ b/
main.py
@@
-658,7
+658,7
@@
for i in range(args.nb_models):
nb_heads=args.nb_heads,
nb_blocks=args.nb_blocks,
dropout=args.dropout,
- )
.to(main_device)
+ )
# model = torch.compile(model)
@@
-666,9
+666,6
@@
for i in range(args.nb_models):
model.test_accuracy = 0.0
model.optimizer = torch.optim.Adam(model.parameters(), lr=args.learning_rate)
- model.to(main_device).train()
- optimizer_to(model.optimizer, main_device)
-
models.append(model)
######################################################################