>>> x=torch.rand(8, dtype=torch.cdouble, requires_grad=True)
>>> y=x.clone()
>>> z=y.unfold(0,2,2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: unfold does not support automatic differentiation for outputs with complex dtype.
cc @ezyang @anjali411 @dylanbespalko @mruberry