Hi,
What is the version of pytorch you’re using?
If you use the latest binary release which is 0.3.1, this function is not in the doc 191.
This function has been added in master and is only available if you compile from source at the moment.