diff --git a/exir/passes/sym_shape_eval_pass.py b/exir/passes/sym_shape_eval_pass.py index 4ba554c6a17..de606917c7c 100644 --- a/exir/passes/sym_shape_eval_pass.py +++ b/exir/passes/sym_shape_eval_pass.py @@ -278,7 +278,7 @@ def call(self, graph_module: GraphModule): not isinstance(s, int) for s in concrete_stride ): raise RuntimeError( - f"Cannot evalute the shape upper bound of a dynamic-shaped tensor to a concrete bounded integer. Got tensor spec: {spec}." + f"Cannot evaluate the shape upper bound of a dynamic-shaped tensor to a concrete bounded integer. Got tensor spec: {spec}." f"The upper bound shape we get {concrete_shape}, the upper bound stride we get {concrete_stride}" "This tensor could either be from 1. a data-dependent operation such as nonzero. Or 2. an input, whose don't have a constraint for the upper bound." "Please use export's constrain_as_size() or constrain_as_value() apis and set a concrete upper bound to resolve this."