From: Corey Levinson Date: Fri, 10 Sep 2021 16:35:06 +0000 (-0700) Subject: fix typo in torch/onnx/utils.py (#63396) X-Git-Tag: accepted/tizen/8.0/unified/20231005.095509~308 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db3fcf0af3a5ce0103b72fb9f7c28719bea6273c;p=platform%2Fupstream%2Fpytorch.git 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 --- 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. " \