Solved by KFrank in post #2 
              
              
                Hi Giuseppe! 

You are calling the constructor for Sigmoid incorrectly, namely with 
an explicit argument.  (There is also the hidden self argument.  That 
is why the error message complains about two arguments.) 
In more detail, torch.nn.Sigmoid is a class, while torch.sigmoid() 
is a function (as …