To properly register modules, you would have to use nn.ModuleList instead of a plain Python list.
Also, you are creating bottom and end, but are not registering them as self.bottom and self.end, so you might want to fix this, too.