>>> x = torch.ones(size=(10, 10), dtype=torch.cdouble, requires_grad=True)
>>> y=x.clone()
>>> mask = torch.zeros(size=(10, ), dtype=torch.bool)
>>> y.index_put_((mask, ), y[mask], accumulate=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: index does not support automatic differentiation for outputs with complex dtype.
cc @ezyang @anjali411 @dylanbespalko @mruberry @aocsa