No attribute cmake_prefix_path

I refer to https://pytorch.org/cppdocs/installing.html, exec cmake -DCMAKE_PREFIX_PATH=python -c 'import torch;print(torch.utils.cmake_prefix_path)'. But report error has no attribtue cmake_prefix_path.

Which PyTorch version are you using?
If an older one, could you update to the latest stable release (or nightly) and retry the command?

$ py15
Python 3.7.5 (default, May 26 2020, 08:53:41)
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.utils.cmake_prefix_path
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'torch.utils' has no attribute 'cmake_prefix_path'
>>> torch.__version__
'1.5.0'

and

# py15 is the python that install torch1.5
$ py15  -c 'import torch;print(torch.utils.cmake_prefix_path)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'torch.utils' has no attribute 'cmake_prefix_path'

This PR added the functionality and was merged on May 19th, which is after the 1.5.0 release (April 21st), so you would need to update to the latest stable version (1.5.1) or the nightly binary.