libtorch-ffi-2.0.1.1: csrc/hasktorch_profile.h
// when setting --enable-profiling, PROFILING is defined by GHC. torch uses PROFILING literal. To avoid the confliction, PROFILING is redefined to TORCH_PROFILING. #ifdef PROFILING #undef PROFILING #define PROFILING TORCH_PROFILING #endif