The issue seems to be related to your other post.
If you want to create an nn.ReLU module, use:
self.relu = nn.ReLU()

Currently you are trying to feed integers to the functional API, which expects a tensor and the optional inplace argument.