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 7751ed4 commit ba4f780Copy full SHA for ba4f780
torch/_ops.py
@@ -6,7 +6,7 @@
6
import types
7
8
import torch.jit
9
-import torch._utils_internal as torch_utils_internal
+from torch import _utils_internal
10
11
# Query `hasattr` only once.
12
_SET_GLOBAL_FLAGS = hasattr(sys, 'getdlopenflags') and hasattr(sys, 'setdlopenflags')
@@ -252,7 +252,7 @@ def load_library(self, path):
252
if sys.executable == "torch_deploy":
253
return
254
255
- path = torch_utils_internal.resolve_library_path(path)
+ path = _utils_internal.resolve_library_path(path)
256
with dl_open_guard():
257
# Import the shared library into the process, thus running its
258
# static (global) initialization code in order to register custom
0 commit comments