Closed sha256feng closed 5 years ago
In the "setup.sh" file, the program called a python script to do segment reduction based on Pytorch version and whether Cuda is available. I have acquainted myself with some knowledge on C++ and Cuda extension of Pytorch. Yet I still had difficulty understanding why we need to have the segment reduction extension. Can you explain a bit?
Thanks, Shasha
Hi, sorry for the late response. You can ignore the segment reduction part as it is legacy code for implementing the memory-efficient version of GNN which requires something like unsorted_seg_sum function as in Tensorflow. Pytorch now supports unsorted_seg_sum via scatter_add.
In the "setup.sh" file, the program called a python script to do segment reduction based on Pytorch version and whether Cuda is available. I have acquainted myself with some knowledge on C++ and Cuda extension of Pytorch. Yet I still had difficulty understanding why we need to have the segment reduction extension. Can you explain a bit?
Thanks, Shasha