I am new to pytorch. I read the code about how to define a network and call the forward function to generate output.

Screen Shot 2018-07-08 at 6.24.27 PM.png512×595 39.1 KB

I am confused why  “out=net(input)” , instead of  “out=net.forward(input)” just like the standard form of calling a function defined in a class?
Thanks