Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1c996b7

Browse files
janeyx99facebook-github-bot
authored andcommittedSep 17, 2020
Enable typechecking for torch.testing._internal.common_quantized.* (pytorch#44805)
Summary: Addresses a subproblem of [Issue 42969](pytorch#42969) Pull Request resolved: pytorch#44805 Reviewed By: malfet Differential Revision: D23742754 Pulled By: janeyx99 fbshipit-source-id: e916a6a0c049cac318549a485d47f19363087d15
1 parent f5b9233 commit 1c996b7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎mypy.ini

-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ ignore_errors = True
6262
[mypy-torch.testing._internal.codegen.*]
6363
ignore_errors = True
6464

65-
[mypy-torch.testing._internal.common_quantized.*]
66-
ignore_errors = True
67-
6865
[mypy-torch.testing._internal.jit_utils.*]
6966
ignore_errors = True
7067

‎torch/backends/quantized/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ def __getattr__(self, attr):
5050
# This is the sys.modules replacement trick, see
5151
# https://stackoverflow.com/questions/2447353/getattr-on-a-module/7668273#7668273
5252
sys.modules[__name__] = QuantizedEngine(sys.modules[__name__], __name__)
53+
engine: str
54+
supported_engines: List[str]

0 commit comments

Comments
 (0)
Please sign in to comment.