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
17d972ac
Unverified
Commit
17d972ac
authored
May 10, 2024
by
Nicolas Hug
Committed by
GitHub
May 10, 2024
Browse files
Remove VISION_INLINE_VARIABLE (#8416)
parent
c09cc696
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
torchvision/csrc/macros.h
torchvision/csrc/macros.h
+0
-10
torchvision/csrc/vision.h
torchvision/csrc/vision.h
+1
-1
No files found.
torchvision/csrc/macros.h
View file @
17d972ac
...
...
@@ -9,13 +9,3 @@
#else
#define VISION_API
#endif
#if (defined __cpp_inline_variables) || __cplusplus >= 201703L
#define VISION_INLINE_VARIABLE inline
#else
#ifdef _MSC_VER
#define VISION_INLINE_VARIABLE __declspec(selectany)
#else
#define VISION_INLINE_VARIABLE __attribute__((weak))
#endif
#endif
torchvision/csrc/vision.h
View file @
17d972ac
...
...
@@ -7,6 +7,6 @@ namespace vision {
VISION_API
int64_t
cuda_version
();
namespace
detail
{
extern
"C"
VISION_INLINE_VARIABLE
auto
_register_ops
=
&
cuda_version
;
extern
"C"
inline
auto
_register_ops
=
&
cuda_version
;
}
// namespace detail
}
// 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