Just to be sure the code was like this, so the alternate you gave according to mine is correct?
def batchrun(image_batch, model):
  image_batch = torch.FloatTensor(image_batch).cuda()
  image_batch = torch.autograd.Variable(image_batch, volatile=True)
  feats = model(image_batch)
  feats = feats.data.cpu().clone().numpy()
  return feats