Skip to content

Commit 5d8c0f7

Browse files
: python/monarch: pytorch InputBuffer::add() signature changed (#1739)
Summary: pytorch `InputBuffer::add` API changed. adapt `monarch/python/monarch/_gradient_generator.cpp` ``` realInputBuffer(node).add( input_nr, check_and_reduce(node->node, input_nr, std::move(t)), std::nullopt, std::nullopt); // Remove: node->node ``` that gradient computation still works correctly after this change needs to be tested. Differential Revision: D86025607
1 parent fe19d21 commit 5d8c0f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/monarch/gradient/_gradient_generator.cpp

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

431430
InputBuffer& realInputBuffer(NodeState* state) {

0 commit comments

Comments
 (0)