You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for i in range(10):
output = model(**batch)
loss = output.loss
loss.backward()
optimizer.step()
lr_scheduler.step()
optimizer.zero_grad()
print(loss.detach().float())
前面代码不变
改为
输出
只有第1个step时loss正常计算,请问这是为啥?
lr设置1e-8
The text was updated successfully, but these errors were encountered: