Volatile = now has no effect. Use `with torch.no_grad():` instead

I also faced this issue in the following line:

return Variable(tensor(np.concatenate(datom, 0)), volatile=self.volatile), chunk_sizes

UserWarning: volatile was removed and now has no effect. Use with torch.no_grad(): instead.

any help please?