Why relu(inplace=True) does not give error in official resnet.py but it gives error in my code?

Correct me if i am wrong. Is writing self.relu(x) when relu is inplace the same as writing x=self.relu(x), such that in the resnet code, the assignment is unnecessary? Thats my understanding of inplace.