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

fix : frozen param

parent 19f1ea2e
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ def run_duo(args):
val_loss=[]
#init training
loss_function = nn.CrossEntropyLoss()
optimizer = optim.Adam(model.parameters(), lr=0.001, momentum=0.9)
optimizer = optim.Adam(model.parameters(), lr=0.001)
#train model
for e in range(args.epoches):
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