Question · Python course · Module 9: Machine Learning
nn.Module
How do you define a custom neural network model in PyTorch?
Answer options
- Using only lists and dictionaries
- By inheriting from nn.Module and implementing forward()
- Through JSON files
- By importing from an external API
You can check the correct answer by solving this task in the CodeWorlds game.