Skip to content

Commit 363dc39

Browse files
committed
Avoid redundant import itt
1 parent 85c8f18 commit 363dc39

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

torch_patches/enable_itt-v1.5-rc3.patch

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,6 @@ index c61291b..9644b28 100644
8989
if (USE_CUDA)
9090
list(APPEND TORCH_PYTHON_SRCS
9191
${TORCH_SRC_DIR}/csrc/cuda/Module.cpp
92-
diff --git a/torch/__init__.py b/torch/__init__.py
93-
index ac3ffc6..3777e0b 100644
94-
--- a/torch/__init__.py
95-
+++ b/torch/__init__.py
96-
@@ -23,6 +23,7 @@ from ._utils_internal import get_file_path, prepare_multiprocessing_environment,
97-
USE_RTLD_GLOBAL_WITH_LIBTORCH
98-
from .version import __version__
99-
from ._six import string_classes as _string_classes
100-
+from . import itt
101-
102-
__all__ = [
103-
'typename', 'is_tensor', 'is_storage', 'set_default_tensor_type',
10492
diff --git a/torch/autograd/profiler.py b/torch/autograd/profiler.py
10593
index 718b7c5..daa36b8 100644
10694
--- a/torch/autograd/profiler.py

0 commit comments

Comments
 (0)