We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f9c979 commit db78c07Copy full SHA for db78c07
mypy.ini
@@ -204,9 +204,6 @@ ignore_errors = True
204
[mypy-torch.cuda.nccl]
205
ignore_errors = True
206
207
-[mypy-torch.cuda.nvtx]
208
-ignore_errors = True
209
-
210
[mypy-torch._lobpcg]
211
212
torch/_C/_nvtx.pyi
@@ -0,0 +1,4 @@
1
+# Defined in torch/csrc/cuda/shared/nvtx.cpp
2
+def rangePushA(message: str) -> int: ...
3
+def rangePop() -> int: ...
4
+def markA(message: str) -> None: ...
torch/cuda/nvtx.py
@@ -10,7 +10,7 @@ def _fail(*args, **kwargs):
10
rangePop = _fail
11
markA = _fail
12
13
- _nvtx = _NVTXStub()
+ _nvtx = _NVTXStub() # type: ignore[assignment]
14
15
__all__ = ['range_push', 'range_pop', 'mark']
16
0 commit comments