Hello. I’m using PyTorch, which is built from the latest master branch. It seems this version is able to compute higher order derivatives using create_graph=True

create_graph (bool, optional) – If true, graph of the derivative will be constructed, allowing to compute higher order derivative products.  from doc 22

Though I’ve read some discussions, I’m still not sure how to get Hessian matrix or more higher order derivatives using this.
Thank you for advance.