Solved by albanD in post #4 
              
              
                Hi, 
Note that on the python side, the Function have changed slightly as you can see in the tuto. 
For cpp it is a bit more complex. a Function does only one way and its “apply” method should be implemented. It is either implemented in pure autograd by performing operations on Variables or the outpu…