Skip to content

Commit dab16b6

Browse files
ezyangpytorchmergebot
authored andcommitted
s/supress/suppress/ (pytorch#119132)
Signed-off-by: Edward Z. Yang <[email protected]> Pull Request resolved: pytorch#119132 Approved by: https://github.com/kit1980, https://github.com/malfet
1 parent abc09b2 commit dab16b6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Diff for: caffe2/python/onnx/backend.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def prepare(cls, model, device='CPU', raw_values_dict=None, **kwargs):
700700
opset_version = 1
701701

702702
# Prior to onnx version update to onnx-1.8.0, errors caused by failures in
703-
# in the onnx shape inference call were being supressed. Hence a try-catch block
703+
# in the onnx shape inference call were being suppressed. Hence a try-catch block
704704
# is added around the infer_shapes call to avoid these failures and preserve status
705705
try:
706706
model = onnx.shape_inference.infer_shapes(model)
@@ -874,7 +874,7 @@ def _onnx_model_to_caffe2_net(cls, onnx_model, device, opset_version, include_in
874874
device_option = get_device_option(Device(device))
875875

876876
# Prior to onnx version update to onnx-1.8.0, errors caused by failures in
877-
# in the onnx shape inference call were being supressed. Hence a try-catch block
877+
# in the onnx shape inference call were being suppressed. Hence a try-catch block
878878
# is added around the infer_shapes call to avoid these failures and preserve status
879879
try:
880880
onnx_model = onnx.utils.polish_model(onnx_model)

Diff for: torch/_logging/_internal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def set_logs(
215215
A component is a set of related features in PyTorch. All of the log
216216
messages emitted from a given component have their own log levels. If the
217217
log level of a particular message has priority greater than or equal to its
218-
component's log level setting, it is emitted. Otherwise, it is supressed.
218+
component's log level setting, it is emitted. Otherwise, it is suppressed.
219219
This allows you to, for instance, silence large groups of log messages that
220220
are not relevant to you and increase verbosity of logs for components that
221221
are relevant. The expected log level values, ordered from highest to lowest

Diff for: torch/testing/_internal/common_utils.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2744,12 +2744,12 @@ def _run_custom(self, result=None):
27442744

27452745
# TODO: Remove this; this is grandfathered in because we suppressed errors
27462746
# on test suite previously
2747-
# When strict mode is False, supress_errors is True
2747+
# When strict mode is False, suppress_errors is True
27482748
if compiled:
2749-
supress_errors = not strict_mode
2749+
suppress_errors = not strict_mode
27502750
else:
2751-
supress_errors = torch._dynamo.config.suppress_errors
2752-
with unittest.mock.patch("torch._dynamo.config.suppress_errors", supress_errors):
2751+
suppress_errors = torch._dynamo.config.suppress_errors
2752+
with unittest.mock.patch("torch._dynamo.config.suppress_errors", suppress_errors):
27532753
if TEST_WITH_TORCHINDUCTOR: # noqa: F821
27542754
super_run = torch._dynamo.optimize("inductor")(super_run)
27552755
elif TEST_WITH_AOT_EAGER: # noqa: F821

0 commit comments

Comments
 (0)