mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
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:
committed by
Facebook Github Bot
parent
5c8535d5b0
commit
db8ce7ea2d
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user