Hi all.
I have a function f(X) which takes a 1d tensor and returns a float.  I would like to attempt to find an X which minimizes f(X) using the pytorch c++ api.
I’ve seen a couple of mentions here of modelling the function with pytorch modules, but I’m having difficulty getting my head around the concept - can anyone help?
Thanks,
Ian