SourceChangeWarning: source code of class

I updated the pytorch version, a lot of this warning, how to solve it? Thank you for your help

SourceChangeWarning: source code of class ‘torch.nn.modules.batchnorm.BatchNorm2d’ has changed. you can retrieve the original source code by accessing the object’s source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.

you can ignore these warnings.

4 Likes

Okay, thank you very much

If I ignore these warnings, can I run successfully?