We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 501a2c9 commit 0f506f1Copy full SHA for 0f506f1
torchvision/csrc/io/image/common.cpp
@@ -2,6 +2,15 @@
2
#include "common.h"
3
#include <torch/torch.h>
4
5
+// If we are in a Windows environment, we need to define
6
+// initialization functions for the _custom_ops extension
7
+#ifdef _WIN32
8
+void* PyInit_image(void) {
9
+ return nullptr;
10
+}
11
+#endif
12
+
13
14
namespace vision {
15
namespace image {
16
torchvision/csrc/io/image/image.cpp
@@ -2,14 +2,6 @@
#include <ATen/core/op_registration/op_registration.h>
-// If we are in a Windows environment, we need to define
-// initialization functions for the _custom_ops extension
-#ifdef _WIN32
-void* PyInit_image(void) {
- return nullptr;
-}
-#endif
-
0 commit comments