From db3fcf0af3a5ce0103b72fb9f7c28719bea6273c Mon Sep 17 00:00:00 2001 From: Corey Levinson Date: Fri, 10 Sep 2021 09:35:06 -0700 Subject: [PATCH] fix typo in torch/onnx/utils.py (#63396) Summary: fixes minor typo Pull Request resolved: https://github.com/pytorch/pytorch/pull/63396 Reviewed By: pbelevich Differential Revision: D30644295 Pulled By: SplitInfinity fbshipit-source-id: c506f67383909aa2c0c7c533038446b4b3d76a3a --- torch/onnx/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torch/onnx/utils.py b/torch/onnx/utils.py index 41ba20f..0b447a9 100644 --- a/torch/onnx/utils.py +++ b/torch/onnx/utils.py @@ -217,7 +217,7 @@ def _optimize_graph(graph, operator_export_type, _disable_torch_constant_prop=Fa return graph -# We accept dictionnaries and strings as ONNX inputs, +# We accept dictionaries and strings as ONNX inputs, # but they should be only for configuration use. # we detect here if these inputs are modified, and if so # we warn the user that the changes won't take effect in the @@ -226,7 +226,7 @@ def warn_on_static_input_change(input_states): for input, traced_input in zip(input_states[0], input_states[1]): if isinstance(input, dict): if list(input.keys()) != list(traced_input.keys()): - warning = "We detected that you are modifying a dictionnary that is an input to your " \ + warning = "We detected that you are modifying a dictionary that is an input to your " \ "model. " \ "Note that dictionaries are allowed as inputs in ONNX but they should be " \ "handled with care. " \ -- 2.7.4