Please let me know when you do find a good example of unstable symeig!
Here’s an example of a custom autograd function: http://pytorch.org/docs/master/autograd.html#torch.autograd.Function 34
And here’s a guide for it:
http://pytorch.org/docs/master/notes/extending.html 16