Hi @ptrblck Thanks for your interest for this new pb.
So, I have no possibility to investigate the C++ source?
The only use of create_graph=True is from the line
g, = torch.autograd.grad(xeloss, imsv, create_graph=True)

This is part of a code originating from https://github.com/albietz/kernel_reg/blob/master/main.py