Hi Umar!



 UmarMubeen:

out = nn.ReLU(out)

out = self.conv_3(out)

…
TypeError: conv2d() received an invalid combination of arguments - got (ReLU, Parameter, Parameter, tuple, tuple, tuple, int), but expected one of:


The problem is that nn.ReLU(out) constructs a ReLU object so
that you then pass that ReLU object to conv_3.
You want either:
out = nn.ReLU() (out)
# or
out = nn.functional.relu (out)

(I’m a little surprised that nn.ReLU(out) itself doesn’t throw an
error because in most cases your out won’t be able to be cast
to a bool.)
Best.
K. Frank