Your view doesn’t match the size for the input shape of [64, 3, 28, 28].
Change it to: x = x.view(-1, 4 * 4 * 48).
Also, do you get this error running:
model = Network()
x = torch.randn(64, 3, 28, 28)
output = model(x)