1 #!/usr/bin/env python-for-pytorch
4 from torch.utils.ffi import create_extension
6 abs_path = os.path.dirname(os.path.abspath(__file__))
8 ffi = create_extension(
10 headers = [ 'flatland.h' ],
11 sources = [ 'flatland.c' ],
12 extra_objects = [ abs_path + '/flatland_generator.so' ],
19 if __name__ == '__main__':