SAM-Adapter-PyTorch
SAM-Adapter-PyTorch copied to clipboard
Eval function is not wrapped with torch.no_grad()
https://github.com/tianrun-chen/SAM-Adapter-PyTorch/blob/39c339cf481c068405e64ba48122cf3dda782260/train.py#L79
Eval is not wrapped with torch.no_grad(), there could be a data (grad) leak.