xref: /aosp_15_r20/external/pytorch/tools/setup_helpers/gen.py (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1*da0073e9SAndroid Build Coastguard Worker# Little stub file to get BUILD.bazel to play along
2*da0073e9SAndroid Build Coastguard Worker
3*da0073e9SAndroid Build Coastguard Workerimport os.path
4*da0073e9SAndroid Build Coastguard Workerimport sys
5*da0073e9SAndroid Build Coastguard Worker
6*da0073e9SAndroid Build Coastguard Worker
7*da0073e9SAndroid Build Coastguard Workerroot = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
8*da0073e9SAndroid Build Coastguard Workersys.path.insert(0, root)
9*da0073e9SAndroid Build Coastguard Worker
10*da0073e9SAndroid Build Coastguard Workerimport torchgen.gen
11*da0073e9SAndroid Build Coastguard Worker
12*da0073e9SAndroid Build Coastguard Worker
13*da0073e9SAndroid Build Coastguard Workertorchgen.gen.main()
14