[Inductor] Fix mutation tracking of ConvolutionBinaryInplace (#114501)

Init function reorders the arguments so the mutation actually happens on
argument input[0]

I am not sure if there's a good way to test this unfortunately.. Added
tests on https://github.com/pytorch/pytorch/pull/114436

Pull Request resolved: https://github.com/pytorch/pytorch/pull/114501
Approved by: https://github.com/leslie-fang-intel, https://github.com/aakhundov
This commit is contained in:
Oguz Ulgen
2023-11-23 22:50:48 -08:00
committed by PyTorch MergeBot
parent 0a063ad2c0
commit c6d88604d5

View File

@ -5118,7 +5118,7 @@ class ConvolutionBinaryInplace(ExternKernelAlloc):
)
def get_mutation_names(self):
return [self.inputs[1].get_name()]
return [self.inputs[0].get_name()]
def get_unbacked_symbol_defs(self):
return {}