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 094e7af commit 123789fCopy full SHA for 123789f
setup.py
@@ -136,6 +136,8 @@ def get_macros_and_flags():
136
if sys.platform == "win32":
137
define_macros += [("torchvision_EXPORTS", None)]
138
extra_compile_args["cxx"].append("/MP")
139
+ if sysconfig.get_config_var("Py_GIL_DISABLED"):
140
+ extra_compile_args["cxx"].append("-DPy_GIL_DISABLED")
141
142
if DEBUG:
143
extra_compile_args["cxx"].append("-g")
0 commit comments