Stacking linear layers
Nice work building your first network with two linear layers. Let's stack some more layers. Remember that a neural network can have as many hidden layers as we want, provided the inputs and outputs line up.
This network is designed to ingest the following input:
input_tensor = torch.Tensor(
[[2, 7, 9, 5, 3]]
)
This exercise is part of the course
Introduction to Deep Learning with PyTorch
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
