AttributeError: module 'torch.functional' has no attribute 'relu'

Hey Guys,
I am new to Pytorch. I get the error AttributeError: module ‘torch.functional’ has no attribute ‘relu’.
My Pytorch version is pytorch-0.4.1 py36_cuda0.0_cudnn0.0_1
Can someone tell me more about this error?

Thanks!

1 Like

torch.nn.functional.relu

6 Likes