Change make_reduction to reflect input resizing. #56764
Labels
better-engineering
Relatively self-contained tasks for better engineering contributors
module: reductions
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Uh oh!
There was an error while loading. Please reload this page.
🚀 Feature
The
make_reduction
function inReduceOpsUtils.h
resizes the input tensor, but this is not obvious from the function name. Changing the name would be a useful change in terms of usability.Motivation
In this comment (https://github.com/pytorch/pytorch/pull/52565/files#r616911706) of this PR (#52565) , it can be seen that even though we rely on
make_reduction
to change the sizes of the tensors, the same is not reflected in the function name and leaves one wondering about the change that the function makes on the input tensors.Pitch
A different, better name for
make_reduction
, for examplereduce_and_resize
orget_reduction_and_resize
would be nice.cc @heitorschueroff
The text was updated successfully, but these errors were encountered: