We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#pragma comment(linker, "/include:_register_ops")
1 parent 5367021 commit c09cc69Copy full SHA for c09cc69
torchvision/csrc/macros.h
@@ -15,7 +15,6 @@
15
#else
16
#ifdef _MSC_VER
17
#define VISION_INLINE_VARIABLE __declspec(selectany)
18
-#define HINT_MSVC_LINKER_INCLUDE_SYMBOL
19
20
#define VISION_INLINE_VARIABLE __attribute__((weak))
21
#endif
torchvision/csrc/vision.h
@@ -8,9 +8,5 @@ VISION_API int64_t cuda_version();
8
9
namespace detail {
10
extern "C" VISION_INLINE_VARIABLE auto _register_ops = &cuda_version;
11
-#ifdef HINT_MSVC_LINKER_INCLUDE_SYMBOL
12
-#pragma comment(linker, "/include:_register_ops")
13
-#endif
14
-
} // namespace detail
} // namespace vision
0 commit comments