Composite compliance for index_put (#71765)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71765
This PR gives index_put the same treatment as
https://github.com/pytorch/pytorch/pull/71751.
Test Plan: - wait for tests
Reviewed By: albanD
Differential Revision: D33772755
Pulled By: zou3519
fbshipit-source-id: 441c9e9188a35ce1a04a337d1c3fdaf87846acf6
(cherry picked from commit 4a168ac40d5c0c6464e1c4fd609f97e5c5e57176)