Skip to content

Deprecation warnings for torch 1.5 #1906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fmigneault opened this issue Feb 21, 2020 · 3 comments · Fixed by #1918
Closed

Deprecation warnings for torch 1.5 #1906

fmigneault opened this issue Feb 21, 2020 · 3 comments · Fixed by #1918

Comments

@fmigneault
Copy link
Contributor

(BatchNormImpl at <TORCH_ROOT>\torch\csrc\api\src\nn\modules\batchnorm.cpp:21)
Warning: torch::nn::BatchNorm module is deprecated and will be removed in 1.5. Use BatchNorm{1,2,3}d instead. 

Warning: The enum value `torch::nn::init::Nonlinearity::ReLU` is deprecated and will be removed in 1.5. Please use `torch::kReLU` instead. (_compute_nonlinearity_type at <TORCH_ROOT>\torch\csrc\api\src\nn\init.cpp:63)

Warning: The enum value `torch::nn::init::FanMode::FanOut` is deprecated and will be removed in 1.5. Please use `torch::kFanOut` instead. (_compute_fanmode_type at <TORCH_ROOT>\torch\torch\csrc\api\src\nn\init.cpp:78)
@fmassa
Copy link
Member

fmassa commented Feb 25, 2020

We will happily accept PRs fixing the deprecation warnings.

@fmigneault
Copy link
Contributor Author

@fmassa
Not too sure if the failing build steps are related?
If so, guidance would be appreciated as I didn't touch python parts, so I don't know how it leads to this.

@fmassa
Copy link
Member

fmassa commented Mar 4, 2020

@fmigneault the failing tests were unrelated to your change and have been fixed in the current version in master, thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants