Solved by ptrblck in post #2 
              
              
                nn.ReLU() create a class. You should assign it to a variable and use an input on this instance: 
relu = nn.ReLU()
output = relu(x)

Alternatively you could use the functional API: 
output = F.relu(x)