cmake DTORCH_HAS_CUDA examples

Tencent/Forward CMakeLists.txt :282

add_definitions(-DTORCH_HAS_CUDA=1)