Commit f40f6db
python/monarch: pytorch InputBuffer::add() signature changed (meta-pytorch#1739)
Summary:
Pull Request resolved: meta-pytorch#1739
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.
Reviewed By: vidhyav
Differential Revision: D86025607
fbshipit-source-id: 43599cd13db98da9095baac21f27971ccb8ef0f01 parent fe19d21 commit f40f6db
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
423 | 430 | | |
424 | 431 | | |
425 | 432 | | |
426 | 433 | | |
427 | 434 | | |
428 | 435 | | |
| 436 | + | |
429 | 437 | | |
430 | 438 | | |
431 | 439 | | |
| |||
0 commit comments