Pyramidbox.pytorch icon indicating copy to clipboard operation
Pyramidbox.pytorch copied to clipboard

max_im_shrink

Open ljmkgbkq opened this issue 6 years ago • 1 comments

请问在哪里设置max_im_shrink

ljmkgbkq avatar May 21 '19 03:05 ljmkgbkq

you don't need to modify max_im_shrink if out of memory at /pytorch/torch/lib/THC/generic/THCStorage.cu:58, just change
x = Variable(torch.from_numpy(x).unsqueeze(0)) to : x = Variable(torch.from_numpy(x).unsqueeze(0),volatile=True), it works.

Llq201809 avatar Aug 06 '19 06:08 Llq201809