Skip to content

Commit 6c3ab55

Browse files
committed
check
1 parent b9a84b7 commit 6c3ab55

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

onnxscript/ir/passes/_pass_infra.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)