Solved by albanD in post #2 
              
              
                Hi, 
The functions implemented in Functions.h is the “functional” version that implements the forward, not the nn layer that you create with torch::nn::Linear(). 
You can see the class doc here and the options doc (that show to to disable bias) here