3 from os.path
import dirname, abspath
11 pytorch_root = dirname(dirname(abspath(__file__)))
12 sys.path.append(pytorch_root)
19 if __name__ ==
'__main__':
21 parser = argparse.ArgumentParser(description=
'Build libtorch')
22 options = parser.parse_args()
24 build_caffe2(version=
None, cmake_python_library=
None,
25 build_python=
False, rerun_cmake=
True, build_dir=
'.')