https://www.cnblogs.com/douzujun/p/13364116.html
requires_grad=True
requires_grad=False
with torch.no_grad()
@torch.no_grad()
model.eval() # 测试模式 with torch.no_grad(): pass @torch.no_grad() def eval(): ...