Skip to content
ml-recall

#steplr

1 question from PyTorch

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

mediumAI-checkedPyTorch
optimizer = torch.optim.SGD(model.parameters(), lr=0.1)
scheduler = torch.optim.lr_scheduler.StepLR(optimizer, step_size=30, gamma=0.1)
for epoch in range(100):
    train_one_epoch(model, optimizer)
    scheduler.step()

What learning rate does the optimizer use during the epoch with epoch == 65?

a number, e.g. 0.05