Skip to content
Snippets Groups Projects
Commit 19f1ea2e authored by Schneider Leo's avatar Schneider Leo
Browse files

fix : frozen param

parent 5c611b35
No related branches found
No related tags found
No related merge requests found
...@@ -216,7 +216,7 @@ def run_duo(args): ...@@ -216,7 +216,7 @@ def run_duo(args):
val_loss=[] val_loss=[]
#init training #init training
loss_function = nn.CrossEntropyLoss() loss_function = nn.CrossEntropyLoss()
optimizer = optim.SGD(model.parameters(), lr=0.001, momentum=0.9) optimizer = optim.Adam(model.parameters(), lr=0.001, momentum=0.9)
#train model #train model
for e in range(args.epoches): for e in range(args.epoches):
loss, acc = train_duo(model,data_train,optimizer,loss_function,e) loss, acc = train_duo(model,data_train,optimizer,loss_function,e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment