Hello,
I think these posts can help you answer your questions, just in case you haven’t already checked them out:
how-to-choose-between-torch-nn-functional-and-torch-nn-module 6
what-is-the-difference-between-torch-nn-and-torch-nn-functional 5
Besides I think more details are needed to solve the error. Can you post a complete example of code that we can run ?