pytorch-seq2seq icon indicating copy to clipboard operation
pytorch-seq2seq copied to clipboard

UserWarning: volatile was removed

Open amrsharaf opened this issue 6 years ago • 1 comments

Some times I get the warning below when I run the code, will this be fixed in a future version?

/opt/conda/lib/python3.6/site-packages/torchtext/data/field.py:322: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad(): instead. return Variable(arr, volatile=not train)

amrsharaf avatar Jun 15 '18 18:06 amrsharaf

Hi, This is torchtext issue. Please follow this discussion: https://github.com/pytorch/text/issues/321

tejaswini avatar Jun 18 '18 02:06 tejaswini