File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,14 +141,14 @@ def __call__(self, model: ir.Model) -> PassResult:
141141 if self .in_place and result .model is not model :
142142 raise PassError (
143143 f"The pass '{ self .__class__ .__name__ } ' is declared in-place, "
144- "but the model returned is not the same object as the input model. "
145- "Pass should return the same model object or self. in_place should return False."
144+ "but the model returned is * not* the same object as the input model. "
145+ "Pass developer: Pass should return the same model object or the in_place property should return False."
146146 )
147147 if not self .in_place and result .model is model :
148148 raise PassError (
149149 f"The pass '{ self .__class__ .__name__ } ' is declared not in-place, "
150- "but the model returned is the same object as the input model. "
151- "Pass should return a new model object or self. in_place should return True."
150+ "but the model returned *is* the same object as the input model. "
151+ "Pass developer: Pass should return a new model object or the in_place property should return True."
152152 )
153153 return result
154154
You can’t perform that action at this time.
0 commit comments