Support in-place update in IndexHashOp (#30275)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30275
`IndexHash` did not support in-place update.
Reviewed By: kennyhorror
Differential Revision: D18612231
fbshipit-source-id: adeccdf1ceb6107454555ff9cdf66fd5e5773f2a