Fix torch::nn::init::orthogonal_ with CNNs (#18915)
authorOmegastick <omegastick@hotmail.co.uk>
Tue, 9 Apr 2019 17:36:13 +0000 (10:36 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 9 Apr 2019 17:39:15 +0000 (10:39 -0700)
commit31ff0ecd2b400b4863741bcbc41748f2ad01745c
treed239313cf8f88e1740ba7512f93a3efdb0ebb7ff
parent25bd28c3a0b8e755fe4cb382abfda05b17676fb7
Fix torch::nn::init::orthogonal_ with CNNs (#18915)

Summary:
Fixes #18518

I changed the C++ API torch::nn::init::orthogonal_ implementation to match the Python implementation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18915

Differential Revision: D14851833

Pulled By: ezyang

fbshipit-source-id: 45b5e9741582777c203e9ebed564ab3ac1f94baf
test/cpp/api/init.cpp
torch/csrc/api/src/nn/init.cpp
torch/nn/init.py