Skip to content

Commit 422f466

Browse files
soulitzermeta-codesync[bot]
authored andcommitted
Warn if AccumulateGrad stream does not match producer node stream (#1680)
Summary: Pull Request resolved: #1680 ghstack-source-id: 59641aa32dc6fd027abf3276017432b693aa71f8 Pull-Request-resolved: pytorch/pytorch#165065 Fixes #ISSUE_NUMBER Opening a new PR for codev cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci X-link: pytorch/pytorch#166136 Reviewed By: ngimel Differential Revision: D85360862 Pulled By: soulitzer fbshipit-source-id: 891ba85bcfdfcd191cb9331a7fc19b5fc4fed6cd
1 parent a0aa429 commit 422f466

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/monarch/gradient/_gradient_generator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ struct GradientGenerator {
424424
input_nr,
425425
check_and_reduce(node->node, input_nr, std::move(t)),
426426
std::nullopt,
427-
std::nullopt);
427+
std::nullopt,
428+
node->node);
428429
}
429430

430431
InputBuffer& realInputBuffer(NodeState* state) {

0 commit comments

Comments
 (0)