Skip to content

Commit 126e3e7

Browse files
NicolasHugesauser2simpleton
authored
[FBcode->GH] Bump SoLoader and Allow building torchvision operators statically (#7342)
Co-authored-by: Eric Sauser <[email protected]> Co-authored-by: Sim Sun <[email protected]>
1 parent 8ee4d59 commit 126e3e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ allprojects {
1414

1515
androidSupportAppCompatV7Version = "28.0.0"
1616
fbjniJavaOnlyVersion = "0.0.3"
17-
soLoaderNativeLoaderVersion = "0.10.4"
17+
soLoaderNativeLoaderVersion = "0.10.5"
1818
pytorchAndroidVersion = "1.12"
1919
}
2020

torchvision/csrc/macros.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#ifdef _WIN32
3+
#if defined(_WIN32) && !defined(TORCHVISION_BUILD_STATIC_LIBS)
44
#if defined(torchvision_EXPORTS)
55
#define VISION_API __declspec(dllexport)
66
#else

0 commit comments

Comments
 (0)