uber-research / UPSNet

UPSNet: A Unified Panoptic Segmentation Network
Other
649 stars 120 forks source link

/autograd/python_function.cpp:638: UserWarning: Legacy autograd function with non-static forward method is deprecated and will be removed in 1.3. #88

Closed ljjyxz123 closed 5 years ago

ljjyxz123 commented 5 years ago

Is anyone using pytorch 1.2.x to run this project?

I am using pytorch 1.2.0, while in the training process, the warning message shown as in the title:

/autograd/python_function.cpp:638: UserWarning: Legacy autograd function with non-static forward method is deprecated and will be removed in 1.3.

is continuing printing on the screen line by line, therefore I cannot read my debug information.

Does anyone has solution to disable this warning message?

ljjyxz123 commented 5 years ago

Solved by :

import warnings warnings.filterwarnings("ignore")

ljjyxz123 commented 5 years ago

So I will close this issue.