diff --git a/torchvision/csrc/macros.h b/torchvision/csrc/macros.h index 64ca89429a9..55be2183967 100644 --- a/torchvision/csrc/macros.h +++ b/torchvision/csrc/macros.h @@ -15,7 +15,6 @@ #else #ifdef _MSC_VER #define VISION_INLINE_VARIABLE __declspec(selectany) -#define HINT_MSVC_LINKER_INCLUDE_SYMBOL #else #define VISION_INLINE_VARIABLE __attribute__((weak)) #endif diff --git a/torchvision/csrc/vision.h b/torchvision/csrc/vision.h index 22f8c6cdd38..22c0ec6f941 100644 --- a/torchvision/csrc/vision.h +++ b/torchvision/csrc/vision.h @@ -8,9 +8,5 @@ VISION_API int64_t cuda_version(); namespace detail { extern "C" VISION_INLINE_VARIABLE auto _register_ops = &cuda_version; -#ifdef HINT_MSVC_LINKER_INCLUDE_SYMBOL -#pragma comment(linker, "/include:_register_ops") -#endif - } // namespace detail } // namespace vision