Back out "Make autogen functions correct for multiple outputs and views" (#32681)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32681

Original commit changeset: a2b41c2d231e

Test Plan: fb and oss tests

Reviewed By: hudeven

Differential Revision: D19591864

fbshipit-source-id: 7068b5563e37bc9a5d415fd535c73fd9d71fe131
This commit is contained in:
Alban Desmaison
2020-01-27 19:52:41 -08:00
committed by Facebook Github Bot
parent 5c8535d5b0
commit db8ce7ea2d
9 changed files with 94 additions and 166 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ TEST(InitTest, CanInitializeTensorThatRequiresGrad) {
ASSERT_THROWS_WITH(
tensor.fill_(1),
"a leaf Variable that requires grad "
"is being used in an in-place operation");
"has been used in an in-place operation");
ASSERT_EQ(torch::nn::init::ones_(tensor).sum().item<int32_t>(), 12);
}
@@ -168,4 +168,4 @@ TEST(InitTest, FanModeLegacyEnum) {
FANMODE_ENUM_LEGACY_WARNING_CHECK(kaiming_uniform_, FanIn, "torch::kFanIn")
FANMODE_ENUM_LEGACY_WARNING_CHECK(kaiming_uniform_, FanOut, "torch::kFanOut")
}
}