Skip to content

Commit bb75826

Browse files
shayne-fletchermeta-codesync[bot]
authored andcommitted
Back out ": python/monarch: pytorch InputBuffer::add() signature changed" (meta-pytorch#1741)
Summary: Pull Request resolved: meta-pytorch#1741 Original commit changeset: 43599cd13db9 Original Phabricator Diff: D86025607 this fix appeared to work on the day but didn't "stick". that being so, it doesn't seem that keeping it is worthwhile. better we reset to how we intend the build to work (use torch nightly everywhere) and take it from there. Reviewed By: johnwhumphreys Differential Revision: D86051511 fbshipit-source-id: ecd725d98013e4686f612eea6bfff665db28436a
1 parent abdea9b commit bb75826

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

python/monarch/gradient/_gradient_generator.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -420,20 +420,12 @@ struct GradientGenerator {
420420
DEBUG_PRINT(
421421
"// add: " << node->node->name()
422422
<< ", input_nr=" << static_cast<int>(input_nr) << "\n");
423-
#if !defined(FBCODE_BUILD)
424-
realInputBuffer(node).add(
425-
input_nr,
426-
check_and_reduce(node->node, input_nr, std::move(t)),
427-
std::nullopt,
428-
std::nullopt);
429-
#else
430423
realInputBuffer(node).add(
431424
input_nr,
432425
check_and_reduce(node->node, input_nr, std::move(t)),
433426
std::nullopt,
434427
std::nullopt,
435428
node->node);
436-
#endif
437429
}
438430

439431
InputBuffer& realInputBuffer(NodeState* state) {

0 commit comments

Comments
 (0)