Skip to content

Commit c09cc69

Browse files
authored
Remove #pragma comment(linker, "/include:_register_ops") (#8414)
1 parent 5367021 commit c09cc69

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

torchvision/csrc/macros.h

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#else
1616
#ifdef _MSC_VER
1717
#define VISION_INLINE_VARIABLE __declspec(selectany)
18-
#define HINT_MSVC_LINKER_INCLUDE_SYMBOL
1918
#else
2019
#define VISION_INLINE_VARIABLE __attribute__((weak))
2120
#endif

torchvision/csrc/vision.h

-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,5 @@ VISION_API int64_t cuda_version();
88

99
namespace detail {
1010
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-
1511
} // namespace detail
1612
} // namespace vision

0 commit comments

Comments
 (0)