We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf113a5 + 17d972a commit f0ab354Copy full SHA for f0ab354
torchvision/csrc/macros.h
@@ -9,13 +9,3 @@
9
#else
10
#define VISION_API
11
#endif
12
-
13
-#if (defined __cpp_inline_variables) || __cplusplus >= 201703L
14
-#define VISION_INLINE_VARIABLE inline
15
-#else
16
-#ifdef _MSC_VER
17
-#define VISION_INLINE_VARIABLE __declspec(selectany)
18
19
-#define VISION_INLINE_VARIABLE __attribute__((weak))
20
-#endif
21
torchvision/csrc/vision.h
@@ -7,6 +7,6 @@ namespace vision {
7
VISION_API int64_t cuda_version();
8
namespace detail {
-extern "C" VISION_INLINE_VARIABLE auto _register_ops = &cuda_version;
+extern "C" inline auto _register_ops = &cuda_version;
} // namespace detail
} // namespace vision
0 commit comments