What’s the difference between `torch.nn.functional` and `torch.nn`?
It seems that there are quite a few similar function in these two modules. What I want to know is if there were any other further difference, say, the efficiency?
Response777
jekbradbury
Cysu
Correct me if I’m wrong. Seems like when using nn.functional   net.parameters() won’t find the parameters/weight. you need to specify them explicity
Xixi
I think this is correct, using nn.functional is lower-level. 1: you can’t benefit from the nn.sequential, so we have to manually define the parameters. However, you could still use the torch.optim to update the parameters in training.
klory
I beleive both input and kernel are trainable. Can U explain what is extra in torch.nn or more inherited?? thanks
govind_narasimman