AttributeError: module 'torch' has no attribute 'pinverse'

I wrote the codes as follow which is copyed from pytorch.org.

input = torch.randn(3, 5)
print(torch.pinverse(input))

AttributeError: module ‘torch’ has no attribute ‘pinverse’.
Have somebody can help me?

Hi,

Which version of pytorch do you have? It has been added recently.

The version of pytorch is 0.4.0. Is it available?

From the 0.4.0 doc it doesn’t seem to exist. It does exist in the 0.4.1 doc though.

Thank you! I have updated the pytorch to 0.4.1 and solved it.