Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
c09cc696
Unverified
Commit
c09cc696
authored
May 09, 2024
by
Nicolas Hug
Committed by
GitHub
May 09, 2024
Browse files
Remove `#pragma comment(linker, "/include:_register_ops")` (#8414)
parent
53670211
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
torchvision/csrc/macros.h
torchvision/csrc/macros.h
+0
-1
torchvision/csrc/vision.h
torchvision/csrc/vision.h
+0
-4
No files found.
torchvision/csrc/macros.h
View file @
c09cc696
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
#else
#else
#ifdef _MSC_VER
#ifdef _MSC_VER
#define VISION_INLINE_VARIABLE __declspec(selectany)
#define VISION_INLINE_VARIABLE __declspec(selectany)
#define HINT_MSVC_LINKER_INCLUDE_SYMBOL
#else
#else
#define VISION_INLINE_VARIABLE __attribute__((weak))
#define VISION_INLINE_VARIABLE __attribute__((weak))
#endif
#endif
...
...
torchvision/csrc/vision.h
View file @
c09cc696
...
@@ -8,9 +8,5 @@ VISION_API int64_t cuda_version();
...
@@ -8,9 +8,5 @@ VISION_API int64_t cuda_version();
namespace
detail
{
namespace
detail
{
extern
"C"
VISION_INLINE_VARIABLE
auto
_register_ops
=
&
cuda_version
;
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 detail
}
// namespace vision
}
// namespace vision
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment